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
20
20
{
21
21
get
22
22
{
23
+
24
+ #if NET40
23
25
string codeBase = typeof ( DiagnosticsReporter ) . Assembly ( ) . CodeBase ;
24
26
var uri = new UriBuilder ( codeBase ) ;
25
27
string path = Uri . UnescapeDataString ( uri . Path ) ;
26
28
return Path . GetDirectoryName ( path ) ;
29
+ #else
30
+ var basePath = AppContext . BaseDirectory ;
31
+ return Path . GetFullPath ( basePath ) ;
32
+ #endif
27
33
}
28
34
}
29
35
}
Original file line number Diff line number Diff line change 29
29
"imports" : " dnxcore50" ,
30
30
"dependencies" : {
31
31
"NETStandard.Library" : " 1.6.0" ,
32
+ "System.AppContext" : " 4.1.0" ,
32
33
"System.Linq.Expressions" : " 4.1.0" ,
33
34
"System.Reflection" : " 4.1.0" ,
34
35
"System.Reflection.TypeExtensions" : " 4.1.0" ,
You can’t perform that action at this time.
0 commit comments