We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent be3309b commit 764cfe1Copy full SHA for 764cfe1
2 files changed
src/TestStack.BDDfy/Reporters/Writers/FileWriter.cs
@@ -20,10 +20,16 @@ private static string GetDefaultOutputDirectory
20
{
21
get
22
23
+
24
+#if NET40
25
string codeBase = typeof(DiagnosticsReporter).Assembly().CodeBase;
26
var uri = new UriBuilder(codeBase);
27
string path = Uri.UnescapeDataString(uri.Path);
28
return Path.GetDirectoryName(path);
29
+#else
30
+ var basePath = AppContext.BaseDirectory;
31
+ return Path.GetFullPath(basePath);
32
+#endif
33
}
34
35
src/TestStack.BDDfy/project.json
@@ -29,6 +29,7 @@
"imports": "dnxcore50",
"dependencies": {
"NETStandard.Library": "1.6.0",
+ "System.AppContext": "4.1.0",
"System.Linq.Expressions": "4.1.0",
"System.Reflection": "4.1.0",
"System.Reflection.TypeExtensions": "4.1.0",
0 commit comments