Use feed with Microsoft Wix toolset (#21651)

This commit is contained in:
Tess Gauthier
2024-05-11 11:46:58 -07:00
committed by GitHub
parent d564d0fff9
commit 0f3fd2077c
4 changed files with 14 additions and 3 deletions
+1
View File
@@ -38,6 +38,7 @@ pr:
- test/packaging/windows/*
- tools/ci.psm1
- tools/packaging/*
- tools/wix/*
variables:
- name: GIT_CONFIG_PARAMETERS
@@ -3,7 +3,7 @@
<ItemGroup>
<!-- Keep version in sync with wix.psm1 line 18 -->
<PackageReference Include="WiX" Version="3.14.1" />
<PackageReference Include="Microsoft.Signed.Wix" Version="3.14.1-8722.20240403.1" />
</ItemGroup>
</Project>
+10
View File
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<clear />
<add key="dotnet-eng" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-eng/nuget/v3/index.json" />
</packageSources>
<disabledPackageSources>
<clear />
</disabledPackageSources>
</configuration>
+2 -2
View File
@@ -14,9 +14,9 @@ function Install-Wix
Remove-Item $targetRoot -Recurse -Force
}
$binPath = Join-Path -Path $targetRoot -ChildPath 'bin'
Register-PSRepository -Name NuGetGallery -SourceLocation https://api.nuget.org/v3/index.json
Register-PSRepository -Name 'dotnet-eng' -SourceLocation "https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-eng/nuget/v3/index.json"
# keep version in sync with Microsoft.PowerShell.Packaging.csproj
Save-Module -name wix -RequiredVersion 3.14.1 -path "$binPath/"
Save-Module -name Microsoft.Signed.Wix -RequiredVersion '3.14.1-8722.20240403.1' -path "$binPath/"
$docExpandPath = Join-Path -Path $binPath -ChildPath 'doc'
$sdkExpandPath = Join-Path -Path $binPath -ChildPath 'sdk'
$docTargetPath = Join-Path -Path $targetRoot -ChildPath 'doc'