File tree Expand file tree Collapse file tree 4 files changed +11
-10
lines changed
Expand file tree Collapse file tree 4 files changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -115,11 +115,12 @@ public static DnvmEnv CreatePhysical(
115115 Action < string , string > setUserEnvVar )
116116 {
117117 Directory . CreateDirectory ( realPath ) ;
118+
118119 return new DnvmEnv (
119120 userHome : GetFolderPath ( SpecialFolder . UserProfile , SpecialFolderOption . DoNotVerify ) ,
120121 new SubFileSystem ( PhysicalFs , PhysicalFs . ConvertPathFromInternal ( realPath ) ) ,
121122 PhysicalFs ,
122- new UPath ( Environment . CurrentDirectory ) ,
123+ PhysicalFs . ConvertPathFromInternal ( Environment . CurrentDirectory ) ,
123124 isPhysical : true ,
124125 getUserEnvVar ,
125126 setUserEnvVar ) ;
Original file line number Diff line number Diff line change 33using System . ComponentModel ;
44using System . Diagnostics ;
55using System . Reflection ;
6+ using System . Runtime . InteropServices ;
67using System . Security . Cryptography ;
78using Xunit ;
89using Xunit . Abstractions ;
@@ -330,7 +331,11 @@ public async Task RunUpdateSelfInstaller()
330331 Directory . CreateDirectory ( sdkDir ) ;
331332 var fakeDotnet = Path . Combine ( sdkDir , Utilities . DotnetExeName ) ;
332333 Assets . MakeEchoExe ( fakeDotnet , "Hello from dotnet test" ) ;
333- _ = await ProcUtil . RunWithOutput ( "chmod" , $ "+x { fakeDotnet } ") ;
334+
335+ if ( ! RuntimeInformation . IsOSPlatform ( OSPlatform . Windows ) )
336+ {
337+ _ = await ProcUtil . RunWithOutput ( "chmod" , $ "+x { fakeDotnet } ") ;
338+ }
334339
335340 var startVer = Program . SemVer ;
336341 var result = await ProcUtil . RunWithOutput (
Original file line number Diff line number Diff line change 11
2- using System . Net . Security ;
3- using Serde . Json ;
42using Dnvm ;
5- using Dnvm . Test ;
63using Semver ;
74using Xunit ;
8- using System . Net . NetworkInformation ;
5+
6+ namespace Dnvm . Test ;
97
108public sealed class ManifestTests
119{
Original file line number Diff line number Diff line change 11
2- using System . Collections . Immutable ;
3- using System . Runtime . CompilerServices ;
4- using Dnvm . Test ;
52using Spectre . Console . Testing ;
63using Xunit ;
74using Xunit . Abstractions ;
85
9- namespace Dnvm ;
6+ namespace Dnvm . Test ;
107
118public sealed class SelectTests
129{
You can’t perform that action at this time.
0 commit comments