Skip to content

Commit f239eb4

Browse files
authored
Fix dogfood script (#41903)
2 parents 2750eba + 5588be2 commit f239eb4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eng/dogfood.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ try {
3939

4040
$TestDotnetRoot = Join-Path $ArtifactsDir "bin\redist\$configuration\dotnet"
4141

42-
$testDotnetVersion = (Get-Childitem -Directory "$TestDotnetRoot\sdk")[-1]
42+
$testDotnetVersion = (Get-Childitem -Directory "$TestDotnetRoot\sdk")[-1].Name
4343
$env:DOTNET_MSBUILD_SDK_RESOLVER_SDKS_DIR = Join-Path $TestDotnetRoot "sdk\$testDotnetVersion\Sdks"
4444
$env:MicrosoftNETBuildExtensionsTargets = Join-Path $ArtifactsDir "bin\$configuration\Sdks\Microsoft.NET.Build.Extensions\msbuildExtensions\Microsoft\Microsoft.NET.Build.Extensions\Microsoft.NET.Build.Extensions.targets"
4545

0 commit comments

Comments
 (0)