This commit is contained in:
Shawn Yuan
2026-02-12 14:08:26 +08:00
parent acb52875ae
commit 2498f74f5c
2 changed files with 3 additions and 3 deletions

View File

@@ -341,7 +341,8 @@ function Resolve-ArtifactBasedDependencies {
}
}
# Update nuget.config
# Update nuget.config dynamically during pipeline execution
# This modification is temporary and won't be committed back to the repo
$nugetConfig = Join-Path $rootPath "nuget.config"
$configData = Read-FileWithEncoding -Path $nugetConfig
[xml]$xml = $configData.Content
@@ -349,7 +350,7 @@ function Resolve-ArtifactBasedDependencies {
Add-NuGetSourceAndMapping -Xml $xml -Key "localpackages" -Value $OutputDir -Patterns $allLocalPackages
$xml.Save($nugetConfig)
Write-Host "Updated nuget.config with localpackages mapping."
Write-Host "Updated nuget.config with localpackages mapping (temporary, for pipeline execution only)."
return $packageVersions
}

View File

@@ -3,7 +3,6 @@
<packageSources>
<clear />
<add key="PowerToysPublicDependencies" value="https://pkgs.dev.azure.com/shine-oss/PowerToys/_packaging/PowerToysPublicDependencies/nuget/v3/index.json" />
<add key="ProjectReunion" value="https://microsoft.pkgs.visualstudio.com/ProjectReunion/_packaging/Project.Reunion.nuget.internal/nuget/v3/index.json" />
</packageSources>
<packageSourceMapping>
<packageSource key="PowerToysPublicDependencies">