File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -20,10 +20,16 @@ private static string GetDefaultOutputDirectory
2020 {
2121 get
2222 {
23+
24+ #if NET40
2325 string codeBase = typeof ( DiagnosticsReporter ) . Assembly ( ) . CodeBase ;
2426 var uri = new UriBuilder ( codeBase ) ;
2527 string path = Uri . UnescapeDataString ( uri . Path ) ;
2628 return Path . GetDirectoryName ( path ) ;
29+ #else
30+ var basePath = AppContext . BaseDirectory ;
31+ return Path . GetFullPath ( basePath ) ;
32+ #endif
2733 }
2834 }
2935 }
Original file line number Diff line number Diff line change 2929 "imports" : " dnxcore50" ,
3030 "dependencies" : {
3131 "NETStandard.Library" : " 1.6.0" ,
32+ "System.AppContext" : " 4.1.0" ,
3233 "System.Linq.Expressions" : " 4.1.0" ,
3334 "System.Reflection" : " 4.1.0" ,
3435 "System.Reflection.TypeExtensions" : " 4.1.0" ,
You can’t perform that action at this time.
0 commit comments