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

Commit b50c15c

Browse files
authored
Fix compat pack publish script to work if we build corefx on debug or release mode (#28608)
1 parent dad4b72 commit b50c15c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/Microsoft.Windows.Compatibility/tests/publishcompatibilityassets.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ $dotnetPath = -join($repoRoot, "\Tools\dotnetcli\dotnet.exe")
2828
$csprojPath = -join($PSScriptRoot, "\", (Get-ChildItem $PSScriptRoot"\*.csproj" | Select-Object -ExpandProperty Name))
2929
$packagesCachePath = -join($repoRoot, "\packages")
3030
$localPackageSourcePath = -join($repoRoot, "\bin\packages\Debug\")
31-
$restoreSources = -join("https://dotnet.myget.org/F/aspnetcore-dev/api/v3/index.json;https://api.nuget.org/v3/index.json;https://dotnet.myget.org/F/dotnet-core/api/v3/index.json;", $localPackageSourcePath)
3231

3332
if (!(Test-Path $localPackageSourcePath))
3433
{
@@ -40,6 +39,8 @@ if (!(Test-Path $localPackageSourcePath))
4039
}
4140
}
4241

42+
$restoreSources = -join("https://dotnet.myget.org/F/aspnetcore-dev/api/v3/index.json;https://api.nuget.org/v3/index.json;https://dotnet.myget.org/F/dotnet-core/api/v3/index.json;", $localPackageSourcePath)
43+
4344
$compatPackageVersion = _getPackageVersion "Microsoft.Windows.Compatibility"
4445
$privatePackageVersion = _getPackageVersion "Microsoft.Private.CoreFx.NETCoreApp"
4546

0 commit comments

Comments
 (0)