We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca2a4f4 commit d68cd88Copy full SHA for d68cd88
+stdlib/dotnet_api.m
@@ -5,6 +5,7 @@
5
try
6
v = System.Environment.Version.Major;
7
catch
8
+ % not empty because that breaks less-than logic
9
v = -1;
10
end
11
+stdlib/dotnet_home.m
@@ -1,9 +1,17 @@
1
%% DOTNET_HOME give .NET RuntimeLocation
2
3
function h = dotnet_home()
4
-try
- h = dotnetenv().RuntimeLocation;
-catch
- h = "";
+
+h = string.empty;
+try %#ok<TRYNC>
+ if NET.isNETSupported
+ % need to call this at least once or dotnetenv() is empty
12
+ h = dotnetenv().RuntimeLocation;
13
+ end
14
15
16
17
0 commit comments