Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 2bab039

Browse files
committed
MAX_PATH Workaround
1 parent 6b0f893 commit 2bab039

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

tests/runtest.proj

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -409,19 +409,21 @@ namespace $([System.String]::Copy($(Category)).Replace(".","_").Replace("\","").
409409

410410
<Target Name="SetupTestingHost" AfterTargets="CreateTestOverlay" Condition="'$(CreateTestHost)' != 'false'">
411411

412-
<PropertyGroup>
413-
<HostFxrFileName Condition="'$(OSGroup)'=='Windows_NT'">hostfxr</HostFxrFileName>
414-
<HostFxrFileName Condition="'$(OSGroup)'!='Windows_NT'">libhostfxr</HostFxrFileName>
412+
<PropertyGroup Condition="'$(OSGroup)'=='Windows_NT'">
413+
<HostFxrFileName>hostfxr</HostFxrFileName>
414+
<DotnetExecutableName>dotnet.exe</DotnetExecutableName>
415415
</PropertyGroup>
416416

417+
<PropertyGroup Condition="'$(OSGroup)'!='Windows_NT'">
418+
<HostFxrFileName >libhostfxr</HostFxrFileName>
419+
<DotnetExecutableName>dotnet</DotnetExecutableName>
420+
</PropertyGroup>
421+
417422
<ItemGroup>
418423
<CoreCLRBinaries Include="$(CORE_ROOT)\**\*.*" />
419-
<DotnetCLIFiles Include="$(ToolsDir)\dotnetcli\**\*" />
420-
<HostFxFile Include="@(DotnetCLIFiles)" Condition="'%(DotnetCLIFiles.Filename)' == '$(HostFxrFileName)'" />
421-
<DotnetExe Include="@(DotnetCLIFiles)" Condition="'%(DotnetCLIFiles.Filename)%(DotnetCLIFiles.Extension)' == 'dotnet.exe'" />
422-
<HostPolicyFile Include="@(DotnetCLIFiles)" Condition="'%(DotnetCLIFiles.Filename)' == 'hostpolicy'" />
423-
<CoreCLRDLL Include="@(CoreCLRBinaries)" Condition="'%(CoreCLRBinaries.Filename)' == 'coreclr'" />
424-
<Message Text="Set hostfxfile to @(HostFxFile)" />
424+
<HostFxFile Include="$(ToolsDir)\dotnetcli\**\$(HostFxrFileName).dll"/>
425+
<DotnetExe Include="$(ToolsDir)\dotnetcli\$(DotnetExecutableName)" />
426+
<HostPolicyFile Include="$(ToolsDir)\dotnetcli\**\hostpolicy.dll"/>
425427
</ItemGroup>
426428

427429
<Copy SourceFiles="@(HostFxFile)"

0 commit comments

Comments
 (0)