diff options
author | Rob Mensching <rob@firegiant.com> | 2022-11-20 11:12:45 -0800 |
---|---|---|
committer | Rob Mensching <rob@firegiant.com> | 2022-11-21 09:12:41 -0800 |
commit | 6ed066072db5bf15453da1f8da28f727ba46fc5b (patch) | |
tree | 91e6053c2cc3ad41f42573b0e0dca0dc5e89f2ce /src/test | |
parent | 83a63bdc1943187e93749420a3408cd6248eedb9 (diff) | |
download | wix-6ed066072db5bf15453da1f8da28f727ba46fc5b.tar.gz wix-6ed066072db5bf15453da1f8da28f727ba46fc5b.tar.bz2 wix-6ed066072db5bf15453da1f8da28f727ba46fc5b.zip |
Allow signing targets to be overridden in simple Sdk-style .wixproj
Moved the overridable signing targets (like SignMsi) to a new
WixToolset.Signing.props that is included "at the very top of" a
.wixproj using Sdk-style project. That way these signing targets can be
overridden in the .wixproj. When the overridable signing targets were
defined in WixToolset.Signing.targets, then it was necessary to use the
more complex Sdk-style Import syntax to place the signing targets low
enough in the .wixproj.
Closes 7038
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/wix/TestData/WixprojPackageVcxprojWindowsApp/WixprojPackageVcxprojWindowsApp.wixproj | 5 | ||||
-rw-r--r-- | src/test/wix/WixE2E/WixE2EFixture.cs | 8 |
2 files changed, 13 insertions, 0 deletions
diff --git a/src/test/wix/TestData/WixprojPackageVcxprojWindowsApp/WixprojPackageVcxprojWindowsApp.wixproj b/src/test/wix/TestData/WixprojPackageVcxprojWindowsApp/WixprojPackageVcxprojWindowsApp.wixproj index 63caf5c0..27affb11 100644 --- a/src/test/wix/TestData/WixprojPackageVcxprojWindowsApp/WixprojPackageVcxprojWindowsApp.wixproj +++ b/src/test/wix/TestData/WixprojPackageVcxprojWindowsApp/WixprojPackageVcxprojWindowsApp.wixproj | |||
@@ -3,6 +3,7 @@ | |||
3 | <Project Sdk='WixToolset.Sdk'> | 3 | <Project Sdk='WixToolset.Sdk'> |
4 | <PropertyGroup> | 4 | <PropertyGroup> |
5 | <ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally> | 5 | <ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally> |
6 | <SignOutput>true</SignOutput> | ||
6 | </PropertyGroup> | 7 | </PropertyGroup> |
7 | 8 | ||
8 | <ItemGroup> | 9 | <ItemGroup> |
@@ -12,4 +13,8 @@ | |||
12 | 13 | ||
13 | <PackageReference Include="Wixtoolset.UI.wixext" /> | 14 | <PackageReference Include="Wixtoolset.UI.wixext" /> |
14 | </ItemGroup> | 15 | </ItemGroup> |
16 | |||
17 | <Target Name="SignMsi"> | ||
18 | <Warning Text="SignMsi = @(SignMsi)" /> | ||
19 | </Target> | ||
15 | </Project> | 20 | </Project> |
diff --git a/src/test/wix/WixE2E/WixE2EFixture.cs b/src/test/wix/WixE2E/WixE2EFixture.cs index f9094fb2..4a0b78d8 100644 --- a/src/test/wix/WixE2E/WixE2EFixture.cs +++ b/src/test/wix/WixE2E/WixE2EFixture.cs | |||
@@ -55,6 +55,14 @@ namespace WixE2E | |||
55 | 55 | ||
56 | var result = RestoreAndBuild(projectPath); | 56 | var result = RestoreAndBuild(projectPath); |
57 | result.AssertSuccess(); | 57 | result.AssertSuccess(); |
58 | |||
59 | var signingStatement = result.Output.Where(s => s.Contains("warning :")) | ||
60 | .Select(s => s.Replace(Path.GetDirectoryName(projectPath), "<projectFolder>").Replace(@"\Debug\", @"\<configuration>\").Replace(@"\Release\", @"\<configuration>\")) | ||
61 | .ToArray(); | ||
62 | WixAssert.CompareLineByLine(new[] | ||
63 | { | ||
64 | @"<projectFolder>\WixprojPackageVcxprojWindowsApp.wixproj(18,5): warning : SignMsi = obj\<configuration>\en-US\WixprojPackageVcxprojWindowsApp.msi;obj\<configuration>\ja-JP\WixprojPackageVcxprojWindowsApp.msi" | ||
65 | }, signingStatement); | ||
58 | } | 66 | } |
59 | 67 | ||
60 | [Fact] | 68 | [Fact] |