File tree Expand file tree Collapse file tree 3 files changed +16
-6
lines changed Expand file tree Collapse file tree 3 files changed +16
-6
lines changed Original file line number Diff line number Diff line change 11%% DOTNET_HOME give .NET RuntimeLocation
22
33function h = dotnet_home()
4-
5- h = dotnetenv().RuntimeLocation;
6-
7- end
4+ try
5+ h = dotnetenv().RuntimeLocation;
6+ catch
7+ h = " " ;
8+ end
9+ end
Original file line number Diff line number Diff line change 88try
99 y = NET .isNETSupported ;
1010catch
11- y = false ;
11+ try
12+ y = stdlib .dotnet_api() >= 4 ;
13+ catch
14+ y = false ;
15+ end
1216end
1317
1418end
Original file line number Diff line number Diff line change @@ -27,7 +27,11 @@ function test_python_home(tc)
2727
2828function test_dotnet_home(tc )
2929tc .assumeTrue(stdlib .has_dotnet(), " .NET not available" )
30- tc .verifyNotEmpty(stdlib .dotnet_home())
30+ h = stdlib .dotnet_home();
31+
32+ if ~stdlib .matlabOlderThan(' R2022b' )
33+ tc .verifyGreaterThan(strlength(h ), 0 )
34+ end
3135end
3236
3337function test_dotnet_version(tc )
You can’t perform that action at this time.
0 commit comments