aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSean Hall <r.sean.hall@gmail.com>2020-05-30 18:55:10 +1000
committerSean Hall <r.sean.hall@gmail.com>2020-05-31 15:11:21 +1000
commit64fe8bccc329ac5dc0d510bfbd73054d478ddc37 (patch)
tree21cc3d21b3b3a689e434f5a387ad98551eb3486c /src
parent2b9f1c20452b582af1962449e0b662d6ec942728 (diff)
downloadwix-64fe8bccc329ac5dc0d510bfbd73054d478ddc37.tar.gz
wix-64fe8bccc329ac5dc0d510bfbd73054d478ddc37.tar.bz2
wix-64fe8bccc329ac5dc0d510bfbd73054d478ddc37.zip
Move most tests into the new WixToolsetTest.MSBuild project.
This project relies on all of the projects being published in order to properly test wix.targets.
Diffstat (limited to 'src')
-rw-r--r--src/ThmViewerPackage/ThmViewerPackage.wixproj3
-rw-r--r--src/WixToolset.MSBuild/WixToolset.MSBuild.csproj7
-rw-r--r--src/WixToolset.MSBuild/WixToolset.MSBuild.nuspec7
-rw-r--r--src/WixToolset.MSBuild/tools/wix.ca.targets (renamed from src/WixToolset.MSBuild/wix.ca.targets)0
-rw-r--r--src/WixToolset.MSBuild/tools/wix.harvest.targets (renamed from src/WixToolset.MSBuild/wix.harvest.targets)0
-rw-r--r--src/WixToolset.MSBuild/tools/wix.signing.targets (renamed from src/WixToolset.MSBuild/wix.signing.targets)0
-rw-r--r--src/WixToolset.MSBuild/tools/wix.targets (renamed from src/WixToolset.MSBuild/wix.targets)0
-rw-r--r--src/test/WixToolsetTest.BuildTasks/WixToolsetTest.BuildTasks.csproj29
-rw-r--r--src/test/WixToolsetTest.MSBuild/MsbuildFixture.cs (renamed from src/test/WixToolsetTest.BuildTasks/MsbuildFixture.cs)15
-rw-r--r--src/test/WixToolsetTest.MSBuild/MsbuildHeatFixture.cs (renamed from src/test/WixToolsetTest.BuildTasks/MsbuildHeatFixture.cs)12
-rw-r--r--src/test/WixToolsetTest.MSBuild/README.md5
-rw-r--r--src/test/WixToolsetTest.MSBuild/TestData/HeatFileMultipleFilesSameFileName/HeatFileMultipleFilesSameFileName.wixproj (renamed from src/test/WixToolsetTest.BuildTasks/TestData/HeatFileMultpleFilesSameFileName/HeatFileMultpleFilesSameFileName.wixproj)0
-rw-r--r--src/test/WixToolsetTest.MSBuild/TestData/HeatFileMultipleFilesSameFileName/MyProgram.json (renamed from src/test/WixToolsetTest.BuildTasks/TestData/HeatFileMultpleFilesSameFileName/MyProgram.json)0
-rw-r--r--src/test/WixToolsetTest.MSBuild/TestData/HeatFileMultipleFilesSameFileName/MyProgram.txt (renamed from src/test/WixToolsetTest.BuildTasks/TestData/HeatFileMultpleFilesSameFileName/MyProgram.txt)0
-rw-r--r--src/test/WixToolsetTest.MSBuild/TestData/HeatFileMultipleFilesSameFileName/Package.wxs (renamed from src/test/WixToolsetTest.BuildTasks/TestData/HeatFileMultpleFilesSameFileName/Package.wxs)0
-rw-r--r--src/test/WixToolsetTest.MSBuild/TestData/HeatFilePackage/HeatFilePackage.wixproj (renamed from src/test/WixToolsetTest.BuildTasks/TestData/HeatFilePackage/HeatFilePackage.wixproj)0
-rw-r--r--src/test/WixToolsetTest.MSBuild/TestData/HeatFilePackage/Package.wxs (renamed from src/test/WixToolsetTest.BuildTasks/TestData/HeatFilePackage/Package.wxs)0
-rw-r--r--src/test/WixToolsetTest.MSBuild/TestData/MultiCulturalMsiPackage/MsiPackage/MsiPackage.wixproj (renamed from src/test/WixToolsetTest.BuildTasks/TestData/MultiCulturalMsiPackage/MsiPackage/MsiPackage.wixproj)0
-rw-r--r--src/test/WixToolsetTest.MSBuild/TestData/MultiCulturalMsiPackage/MsiPackage/Package.de-de.wxl (renamed from src/test/WixToolsetTest.BuildTasks/TestData/MultiCulturalMsiPackage/MsiPackage/Package.de-de.wxl)0
-rw-r--r--src/test/WixToolsetTest.MSBuild/TestData/MultiCulturalMsiPackage/MsiPackage/Package.en-us.wxl (renamed from src/test/WixToolsetTest.BuildTasks/TestData/MultiCulturalMsiPackage/MsiPackage/Package.en-us.wxl)0
-rw-r--r--src/test/WixToolsetTest.MSBuild/TestData/MultiCulturalMsiPackage/MsiPackage/Package.wxs (renamed from src/test/WixToolsetTest.BuildTasks/TestData/MultiCulturalMsiPackage/MsiPackage/Package.wxs)0
-rw-r--r--src/test/WixToolsetTest.MSBuild/TestData/MultiCulturalMsiPackage/MsiPackage/PackageComponents.wxs (renamed from src/test/WixToolsetTest.BuildTasks/TestData/MultiCulturalMsiPackage/MsiPackage/PackageComponents.wxs)0
-rw-r--r--src/test/WixToolsetTest.MSBuild/TestData/MultiCulturalMsiPackage/MsiPackage/data/test.txt (renamed from src/test/WixToolsetTest.BuildTasks/TestData/MultiCulturalMsiPackage/MsiPackage/data/test.txt)0
-rw-r--r--src/test/WixToolsetTest.MSBuild/TestData/MultiCulturalMsiPackage/MultiCulturalMsiPackage.sln (renamed from src/test/WixToolsetTest.BuildTasks/TestData/MultiCulturalMsiPackage/MultiCulturalMsiPackage.sln)0
-rw-r--r--src/test/WixToolsetTest.MSBuild/TestData/SimpleMsiPackage/MsiPackage/MsiPackage.wixproj (renamed from src/test/WixToolsetTest.BuildTasks/TestData/SimpleMsiPackage/MsiPackage/MsiPackage.wixproj)0
-rw-r--r--src/test/WixToolsetTest.MSBuild/TestData/SimpleMsiPackage/MsiPackage/Package.en-us.wxl (renamed from src/test/WixToolsetTest.BuildTasks/TestData/SimpleMsiPackage/MsiPackage/Package.en-us.wxl)0
-rw-r--r--src/test/WixToolsetTest.MSBuild/TestData/SimpleMsiPackage/MsiPackage/Package.wxs (renamed from src/test/WixToolsetTest.BuildTasks/TestData/SimpleMsiPackage/MsiPackage/Package.wxs)0
-rw-r--r--src/test/WixToolsetTest.MSBuild/TestData/SimpleMsiPackage/MsiPackage/PackageComponents.wxs (renamed from src/test/WixToolsetTest.BuildTasks/TestData/SimpleMsiPackage/MsiPackage/PackageComponents.wxs)0
-rw-r--r--src/test/WixToolsetTest.MSBuild/TestData/SimpleMsiPackage/MsiPackage/data/test.txt (renamed from src/test/WixToolsetTest.BuildTasks/TestData/SimpleMsiPackage/MsiPackage/data/test.txt)0
-rw-r--r--src/test/WixToolsetTest.MSBuild/TestData/SimpleMsiPackage/SimpleBundle/Bundle.wxs (renamed from src/test/WixToolsetTest.BuildTasks/TestData/SimpleMsiPackage/SimpleBundle/Bundle.wxs)0
-rw-r--r--src/test/WixToolsetTest.MSBuild/TestData/SimpleMsiPackage/SimpleBundle/SimpleBundle.wixproj (renamed from src/test/WixToolsetTest.BuildTasks/TestData/SimpleMsiPackage/SimpleBundle/SimpleBundle.wixproj)0
-rw-r--r--src/test/WixToolsetTest.MSBuild/TestData/SimpleMsiPackage/SimpleMsiPackage.sln (renamed from src/test/WixToolsetTest.BuildTasks/TestData/SimpleMsiPackage/SimpleMsiPackage.sln)0
-rw-r--r--src/test/WixToolsetTest.MSBuild/WixToolsetTest.MSBuild.csproj43
-rw-r--r--src/test/WixToolsetTest.MSBuild/WixToolsetTest.MSBuild.v3.ncrunchproject5
34 files changed, 75 insertions, 51 deletions
diff --git a/src/ThmViewerPackage/ThmViewerPackage.wixproj b/src/ThmViewerPackage/ThmViewerPackage.wixproj
index 07014065..212d1bae 100644
--- a/src/ThmViewerPackage/ThmViewerPackage.wixproj
+++ b/src/ThmViewerPackage/ThmViewerPackage.wixproj
@@ -6,7 +6,6 @@
6 <ProjectGuid>59c4b122-5167-445b-8fc4-09dcd4eced89</ProjectGuid> 6 <ProjectGuid>59c4b122-5167-445b-8fc4-09dcd4eced89</ProjectGuid>
7 <OutputName>thmviewer</OutputName> 7 <OutputName>thmviewer</OutputName>
8 <OutputType>Package</OutputType> 8 <OutputType>Package</OutputType>
9 <WixBinDir>$(OutputPath)\net461\win-x86\</WixBinDir>
10 </PropertyGroup> 9 </PropertyGroup>
11 10
12 <ItemGroup> 11 <ItemGroup>
@@ -24,7 +23,7 @@
24 </ProjectReference> 23 </ProjectReference>
25 </ItemGroup> 24 </ItemGroup>
26 25
27 <Import Project="..\WixToolset.MSBuild\wix.targets" /> 26 <Import Project="$(OutputPath)\publish\WixToolset.MSBuild\tools\wix.targets" />
28 27
29 <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild"> 28 <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
30 <PropertyGroup> 29 <PropertyGroup>
diff --git a/src/WixToolset.MSBuild/WixToolset.MSBuild.csproj b/src/WixToolset.MSBuild/WixToolset.MSBuild.csproj
index 5a9633ae..2d5ea01b 100644
--- a/src/WixToolset.MSBuild/WixToolset.MSBuild.csproj
+++ b/src/WixToolset.MSBuild/WixToolset.MSBuild.csproj
@@ -12,6 +12,13 @@
12 </PropertyGroup> 12 </PropertyGroup>
13 13
14 <ItemGroup> 14 <ItemGroup>
15 <Content Include="tools\wix.ca.targets" CopyToOutputDirectory="PreserveNewest" />
16 <Content Include="tools\wix.harvest.targets" CopyToOutputDirectory="PreserveNewest" />
17 <Content Include="tools\wix.signing.targets" CopyToOutputDirectory="PreserveNewest" />
18 <Content Include="tools\wix.targets" CopyToOutputDirectory="PreserveNewest" />
19 </ItemGroup>
20
21 <ItemGroup>
15 <PackageReference Include="Nerdbank.GitVersioning" Version="2.1.65" PrivateAssets="All" /> 22 <PackageReference Include="Nerdbank.GitVersioning" Version="2.1.65" PrivateAssets="All" />
16 </ItemGroup> 23 </ItemGroup>
17 24
diff --git a/src/WixToolset.MSBuild/WixToolset.MSBuild.nuspec b/src/WixToolset.MSBuild/WixToolset.MSBuild.nuspec
index 6171a911..ff0d74ee 100644
--- a/src/WixToolset.MSBuild/WixToolset.MSBuild.nuspec
+++ b/src/WixToolset.MSBuild/WixToolset.MSBuild.nuspec
@@ -12,11 +12,6 @@
12 12
13 <files> 13 <files>
14 <file src="$projectFolder$$id$.props" target="build" /> 14 <file src="$projectFolder$$id$.props" target="build" />
15 <file src="$projectFolder$wix.ca.targets" target="tools" /> 15 <file src="tools\**\*" target="tools" />
16 <file src="$projectFolder$wix.harvest.targets" target="tools" />
17 <file src="$projectFolder$wix.signing.targets" target="tools" />
18 <file src="$projectFolder$wix.targets" target="tools" />
19 <file src="net461\**\*" target="tools\net461" />
20 <file src="netcoreapp2.1\**\*" target="tools\netcoreapp2.1" />
21 </files> 16 </files>
22</package> 17</package>
diff --git a/src/WixToolset.MSBuild/wix.ca.targets b/src/WixToolset.MSBuild/tools/wix.ca.targets
index 4578c2d8..4578c2d8 100644
--- a/src/WixToolset.MSBuild/wix.ca.targets
+++ b/src/WixToolset.MSBuild/tools/wix.ca.targets
diff --git a/src/WixToolset.MSBuild/wix.harvest.targets b/src/WixToolset.MSBuild/tools/wix.harvest.targets
index e4d866ea..e4d866ea 100644
--- a/src/WixToolset.MSBuild/wix.harvest.targets
+++ b/src/WixToolset.MSBuild/tools/wix.harvest.targets
diff --git a/src/WixToolset.MSBuild/wix.signing.targets b/src/WixToolset.MSBuild/tools/wix.signing.targets
index 7c25175f..7c25175f 100644
--- a/src/WixToolset.MSBuild/wix.signing.targets
+++ b/src/WixToolset.MSBuild/tools/wix.signing.targets
diff --git a/src/WixToolset.MSBuild/wix.targets b/src/WixToolset.MSBuild/tools/wix.targets
index b35d18c7..b35d18c7 100644
--- a/src/WixToolset.MSBuild/wix.targets
+++ b/src/WixToolset.MSBuild/tools/wix.targets
diff --git a/src/test/WixToolsetTest.BuildTasks/WixToolsetTest.BuildTasks.csproj b/src/test/WixToolsetTest.BuildTasks/WixToolsetTest.BuildTasks.csproj
index 9fb2bc82..22d421de 100644
--- a/src/test/WixToolsetTest.BuildTasks/WixToolsetTest.BuildTasks.csproj
+++ b/src/test/WixToolsetTest.BuildTasks/WixToolsetTest.BuildTasks.csproj
@@ -10,31 +10,16 @@
10 </PropertyGroup> 10 </PropertyGroup>
11 11
12 <ItemGroup> 12 <ItemGroup>
13 <Content Include="TestData\HeatFilePackage\HeatFilePackage.wixproj" CopyToOutputDirectory="PreserveNewest" /> 13 <Content Include="..\WixToolsetTest.MSBuild\TestData\SimpleMsiPackage\MsiPackage\Package.en-us.wxl" Link="TestData\SimpleMsiPackage\MsiPackage\Package.en-us.wxl" CopyToOutputDirectory="PreserveNewest" />
14 <Content Include="TestData\HeatFilePackage\Package.wxs" CopyToOutputDirectory="PreserveNewest" /> 14 <Content Include="..\WixToolsetTest.MSBuild\TestData\SimpleMsiPackage\MsiPackage\Package.wxs" Link="TestData\SimpleMsiPackage\MsiPackage\Package.wxs" CopyToOutputDirectory="PreserveNewest" />
15 <Content Include="TestData\HeatFileMultpleFilesSameFileName\HeatFileMultpleFilesSameFileName.wixproj" CopyToOutputDirectory="PreserveNewest" /> 15 <Content Include="..\WixToolsetTest.MSBuild\TestData\SimpleMsiPackage\MsiPackage\PackageComponents.wxs" Link="TestData\SimpleMsiPackage\MsiPackage\PackageComponents.wxs" CopyToOutputDirectory="PreserveNewest" />
16 <Content Include="TestData\HeatFileMultpleFilesSameFileName\Package.wxs" CopyToOutputDirectory="PreserveNewest" /> 16 <Content Include="..\WixToolsetTest.MSBuild\TestData\SimpleMsiPackage\MsiPackage\data\test.txt" Link="TestData\SimpleMsiPackage\MsiPackage\data\test.txt" CopyToOutputDirectory="PreserveNewest" />
17 <Content Include="TestData\HeatFileMultpleFilesSameFileName\MyProgram.txt" CopyToOutputDirectory="PreserveNewest" />
18 <Content Include="TestData\HeatFileMultpleFilesSameFileName\MyProgram.json" CopyToOutputDirectory="PreserveNewest" />
19 <Content Include="TestData\MultiCulturalMsiPackage\MsiPackage\MsiPackage.wixproj" CopyToOutputDirectory="PreserveNewest" />
20 <Content Include="TestData\MultiCulturalMsiPackage\MsiPackage\Package.de-de.wxl" CopyToOutputDirectory="PreserveNewest" />
21 <Content Include="TestData\MultiCulturalMsiPackage\MsiPackage\Package.en-us.wxl" CopyToOutputDirectory="PreserveNewest" />
22 <Content Include="TestData\MultiCulturalMsiPackage\MsiPackage\Package.wxs" CopyToOutputDirectory="PreserveNewest" />
23 <Content Include="TestData\MultiCulturalMsiPackage\MsiPackage\PackageComponents.wxs" CopyToOutputDirectory="PreserveNewest" />
24 <Content Include="TestData\MultiCulturalMsiPackage\MsiPackage\data\test.txt" CopyToOutputDirectory="PreserveNewest" />
25 <Content Include="TestData\SimpleMsiPackage\MsiPackage\MsiPackage.wixproj" CopyToOutputDirectory="PreserveNewest" />
26 <Content Include="TestData\SimpleMsiPackage\MsiPackage\Package.en-us.wxl" CopyToOutputDirectory="PreserveNewest" />
27 <Content Include="TestData\SimpleMsiPackage\MsiPackage\Package.wxs" CopyToOutputDirectory="PreserveNewest" />
28 <Content Include="TestData\SimpleMsiPackage\MsiPackage\PackageComponents.wxs" CopyToOutputDirectory="PreserveNewest" />
29 <Content Include="TestData\SimpleMsiPackage\MsiPackage\data\test.txt" CopyToOutputDirectory="PreserveNewest" />
30 <Content Include="TestData\SimpleMsiPackage\SimpleBundle\Bundle.wxs" CopyToOutputDirectory="PreserveNewest" />
31 <Content Include="TestData\SimpleMsiPackage\SimpleBundle\SimpleBundle.wixproj" CopyToOutputDirectory="PreserveNewest" />
32 </ItemGroup> 17 </ItemGroup>
33 18
34 <ItemGroup> 19 <ItemGroup>
35 <Content Include="..\..\WixToolset.MSBuild\wix.harvest.targets" Link="wix.harvest.targets" CopyToOutputDirectory="PreserveNewest" /> 20 <Content Include="..\..\WixToolset.MSBuild\tools\wix.harvest.targets" Link="wix.harvest.targets" CopyToOutputDirectory="PreserveNewest" />
36 <Content Include="..\..\WixToolset.MSBuild\wix.signing.targets" Link="wix.signing.targets" CopyToOutputDirectory="PreserveNewest" /> 21 <Content Include="..\..\WixToolset.MSBuild\tools\wix.signing.targets" Link="wix.signing.targets" CopyToOutputDirectory="PreserveNewest" />
37 <Content Include="..\..\WixToolset.MSBuild\wix.targets" Link="wix.targets" CopyToOutputDirectory="PreserveNewest" /> 22 <Content Include="..\..\WixToolset.MSBuild\tools\wix.targets" Link="wix.targets" CopyToOutputDirectory="PreserveNewest" />
38 </ItemGroup> 23 </ItemGroup>
39 24
40 <ItemGroup> 25 <ItemGroup>
diff --git a/src/test/WixToolsetTest.BuildTasks/MsbuildFixture.cs b/src/test/WixToolsetTest.MSBuild/MsbuildFixture.cs
index 0768f863..85f111a9 100644
--- a/src/test/WixToolsetTest.BuildTasks/MsbuildFixture.cs
+++ b/src/test/WixToolsetTest.MSBuild/MsbuildFixture.cs
@@ -1,18 +1,16 @@
1// Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. 1// Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information.
2 2
3namespace WixToolsetTest.BuildTasks 3namespace WixToolsetTest.MSBuild
4{ 4{
5 using System; 5 using System;
6 using System.IO; 6 using System.IO;
7 using System.Linq; 7 using System.Linq;
8 using WixBuildTools.TestSupport; 8 using WixBuildTools.TestSupport;
9 using WixToolset.BuildTasks;
10 using Xunit; 9 using Xunit;
11 10
12 public class MsbuildFixture 11 public class MsbuildFixture
13 { 12 {
14 private static readonly string WixBinPath = Path.GetDirectoryName(new Uri(typeof(WixBuild).Assembly.CodeBase).AbsolutePath) + "\\"; 13 private static readonly string WixTargetsPath = Path.Combine(new Uri(typeof(MsbuildFixture).Assembly.CodeBase).AbsolutePath, "..", "..", "publish", "WixToolset.MSBuild", "tools", "wix.targets");
15 private static readonly string WixTargetsPath = Path.Combine(WixBinPath, "wix.targets");
16 14
17 [Fact] 15 [Fact]
18 public void CanBuildSimpleBundle() 16 public void CanBuildSimpleBundle()
@@ -28,7 +26,6 @@ namespace WixToolsetTest.BuildTasks
28 var result = MsbuildRunner.Execute(projectPath, new[] 26 var result = MsbuildRunner.Execute(projectPath, new[]
29 { 27 {
30 $"-p:WixTargetsPath={WixTargetsPath}", 28 $"-p:WixTargetsPath={WixTargetsPath}",
31 $"-p:WixBinDir={WixBinPath}",
32 $"-p:IntermediateOutputPath={intermediateFolder}", 29 $"-p:IntermediateOutputPath={intermediateFolder}",
33 $"-p:OutputPath={binFolder}" 30 $"-p:OutputPath={binFolder}"
34 }); 31 });
@@ -66,7 +63,6 @@ namespace WixToolsetTest.BuildTasks
66 var result = MsbuildRunner.Execute(projectPath, new[] 63 var result = MsbuildRunner.Execute(projectPath, new[]
67 { 64 {
68 $"-p:WixTargetsPath={WixTargetsPath}", 65 $"-p:WixTargetsPath={WixTargetsPath}",
69 $"-p:WixBinDir={WixBinPath}",
70 $"-p:IntermediateOutputPath={intermediateFolder}", 66 $"-p:IntermediateOutputPath={intermediateFolder}",
71 $"-p:OutputPath={binFolder}" 67 $"-p:OutputPath={binFolder}"
72 }); 68 });
@@ -129,7 +125,6 @@ namespace WixToolsetTest.BuildTasks
129 { 125 {
130 wixpdbType == null ? String.Empty : $"-p:WixPdbType={wixpdbType}", 126 wixpdbType == null ? String.Empty : $"-p:WixPdbType={wixpdbType}",
131 $"-p:WixTargetsPath={WixTargetsPath}", 127 $"-p:WixTargetsPath={WixTargetsPath}",
132 $"-p:WixBinDir={WixBinPath}",
133 $"-p:IntermediateOutputPath={intermediateFolder}", 128 $"-p:IntermediateOutputPath={intermediateFolder}",
134 $"-p:OutputPath={binFolder}", 129 $"-p:OutputPath={binFolder}",
135 }); 130 });
@@ -157,7 +152,6 @@ namespace WixToolsetTest.BuildTasks
157 var result = MsbuildRunner.Execute(projectPath, new[] 152 var result = MsbuildRunner.Execute(projectPath, new[]
158 { 153 {
159 $"-p:WixTargetsPath={WixTargetsPath}", 154 $"-p:WixTargetsPath={WixTargetsPath}",
160 $"-p:WixBinDir={WixBinPath}",
161 $"-p:IntermediateOutputPath={intermediateFolder}", 155 $"-p:IntermediateOutputPath={intermediateFolder}",
162 $"-p:OutputPath={binFolder}", 156 $"-p:OutputPath={binFolder}",
163 $"-p:InstallerPlatform=x64", 157 $"-p:InstallerPlatform=x64",
@@ -183,7 +177,6 @@ namespace WixToolsetTest.BuildTasks
183 var result = MsbuildRunner.Execute(projectPath, new[] 177 var result = MsbuildRunner.Execute(projectPath, new[]
184 { 178 {
185 $"-p:WixTargetsPath={WixTargetsPath}", 179 $"-p:WixTargetsPath={WixTargetsPath}",
186 $"-p:WixBinDir={WixBinPath}",
187 $"-p:IntermediateOutputPath={intermediateFolder}", 180 $"-p:IntermediateOutputPath={intermediateFolder}",
188 $"-p:OutputPath={binFolder}", 181 $"-p:OutputPath={binFolder}",
189 "-p:SuppressIces=\"ICE45;ICE46\"" 182 "-p:SuppressIces=\"ICE45;ICE46\""
@@ -206,7 +199,6 @@ namespace WixToolsetTest.BuildTasks
206 var result = MsbuildRunner.Execute(projectPath, new[] 199 var result = MsbuildRunner.Execute(projectPath, new[]
207 { 200 {
208 $"-p:WixTargetsPath={WixTargetsPath}", 201 $"-p:WixTargetsPath={WixTargetsPath}",
209 $"-p:WixBinDir={WixBinPath}",
210 $"-p:IntermediateOutputPath={intermediateFolder}", 202 $"-p:IntermediateOutputPath={intermediateFolder}",
211 $"-p:OutputPath={binFolder}", 203 $"-p:OutputPath={binFolder}",
212 "-p:SuppressSpecificWarnings=\"1118;1102\"" 204 "-p:SuppressSpecificWarnings=\"1118;1102\""
@@ -232,7 +224,6 @@ namespace WixToolsetTest.BuildTasks
232 var result = MsbuildRunner.Execute(projectPath, new[] 224 var result = MsbuildRunner.Execute(projectPath, new[]
233 { 225 {
234 $"-p:WixTargetsPath={WixTargetsPath}", 226 $"-p:WixTargetsPath={WixTargetsPath}",
235 $"-p:WixBinDir={WixBinPath}",
236 $"-p:IntermediateOutputPath={intermediateFolder}", 227 $"-p:IntermediateOutputPath={intermediateFolder}",
237 $"-p:OutputPath={binFolder}", 228 $"-p:OutputPath={binFolder}",
238 "-p:OutputType=IntermediatePostLink" 229 "-p:OutputType=IntermediatePostLink"
@@ -261,7 +252,6 @@ namespace WixToolsetTest.BuildTasks
261 var result = MsbuildRunner.Execute(projectPath, new[] 252 var result = MsbuildRunner.Execute(projectPath, new[]
262 { 253 {
263 $"-p:WixTargetsPath={WixTargetsPath}", 254 $"-p:WixTargetsPath={WixTargetsPath}",
264 $"-p:WixBinDir={WixBinPath}",
265 $"-p:IntermediateOutputPath={intermediateFolder}", 255 $"-p:IntermediateOutputPath={intermediateFolder}",
266 $"-p:OutputPath={binFolder}", 256 $"-p:OutputPath={binFolder}",
267 "-v:diag" 257 "-v:diag"
@@ -280,7 +270,6 @@ namespace WixToolsetTest.BuildTasks
280 result = MsbuildRunner.Execute(projectPath, new[] 270 result = MsbuildRunner.Execute(projectPath, new[]
281 { 271 {
282 $"-p:WixTargetsPath={WixTargetsPath}", 272 $"-p:WixTargetsPath={WixTargetsPath}",
283 $"-p:WixBinDir={WixBinPath}",
284 $"-p:IntermediateOutputPath={intermediateFolder}", 273 $"-p:IntermediateOutputPath={intermediateFolder}",
285 $"-p:OutputPath={binFolder}", 274 $"-p:OutputPath={binFolder}",
286 "-t:Clean", 275 "-t:Clean",
diff --git a/src/test/WixToolsetTest.BuildTasks/MsbuildHeatFixture.cs b/src/test/WixToolsetTest.MSBuild/MsbuildHeatFixture.cs
index 95805658..fa8acb81 100644
--- a/src/test/WixToolsetTest.BuildTasks/MsbuildHeatFixture.cs
+++ b/src/test/WixToolsetTest.MSBuild/MsbuildHeatFixture.cs
@@ -1,12 +1,11 @@
1// Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. 1// Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information.
2 2
3namespace WixToolsetTest.BuildTasks 3namespace WixToolsetTest.MSBuild
4{ 4{
5 using System; 5 using System;
6 using System.IO; 6 using System.IO;
7 using System.Linq; 7 using System.Linq;
8 using WixBuildTools.TestSupport; 8 using WixBuildTools.TestSupport;
9 using WixToolset.BuildTasks;
10 using WixToolset.Core.TestPackage; 9 using WixToolset.Core.TestPackage;
11 using WixToolset.Data; 10 using WixToolset.Data;
12 using WixToolset.Data.Tuples; 11 using WixToolset.Data.Tuples;
@@ -14,8 +13,7 @@ namespace WixToolsetTest.BuildTasks
14 13
15 public class MsbuildHeatFixture 14 public class MsbuildHeatFixture
16 { 15 {
17 private static readonly string WixBinPath = Path.GetDirectoryName(new Uri(typeof(WixBuild).Assembly.CodeBase).AbsolutePath) + "\\"; 16 private static readonly string WixTargetsPath = Path.Combine(new Uri(typeof(MsbuildHeatFixture).Assembly.CodeBase).AbsolutePath, "..", "..", "publish", "WixToolset.MSBuild", "tools", "wix.targets");
18 private static readonly string WixTargetsPath = Path.Combine(WixBinPath, "wix.targets");
19 17
20 [Fact] 18 [Fact]
21 public void CanBuildHeatFilePackage() 19 public void CanBuildHeatFilePackage()
@@ -31,7 +29,6 @@ namespace WixToolsetTest.BuildTasks
31 var result = MsbuildRunner.Execute(projectPath, new[] 29 var result = MsbuildRunner.Execute(projectPath, new[]
32 { 30 {
33 $"-p:WixTargetsPath={WixTargetsPath}", 31 $"-p:WixTargetsPath={WixTargetsPath}",
34 $"-p:WixBinDir={WixBinPath}",
35 $"-p:IntermediateOutputPath={intermediateFolder}", 32 $"-p:IntermediateOutputPath={intermediateFolder}",
36 $"-p:OutputPath={binFolder}" 33 $"-p:OutputPath={binFolder}"
37 }); 34 });
@@ -77,7 +74,7 @@ namespace WixToolsetTest.BuildTasks
77 [Fact] 74 [Fact]
78 public void CanBuildHeatFileWithMultipleFilesPackage() 75 public void CanBuildHeatFileWithMultipleFilesPackage()
79 { 76 {
80 var projectPath = TestData.Get(@"TestData\HeatFileMultpleFilesSameFileName\HeatFileMultpleFilesSameFileName.wixproj"); 77 var projectPath = TestData.Get(@"TestData\HeatFileMultipleFilesSameFileName\HeatFileMultipleFilesSameFileName.wixproj");
81 78
82 using (var fs = new DisposableFileSystem()) 79 using (var fs = new DisposableFileSystem())
83 { 80 {
@@ -88,7 +85,6 @@ namespace WixToolsetTest.BuildTasks
88 var result = MsbuildRunner.Execute(projectPath, new[] 85 var result = MsbuildRunner.Execute(projectPath, new[]
89 { 86 {
90 $"-p:WixTargetsPath={WixTargetsPath}", 87 $"-p:WixTargetsPath={WixTargetsPath}",
91 $"-p:WixBinDir={WixBinPath}",
92 $"-p:IntermediateOutputPath={intermediateFolder}", 88 $"-p:IntermediateOutputPath={intermediateFolder}",
93 $"-p:OutputPath={binFolder}" 89 $"-p:OutputPath={binFolder}"
94 }); 90 });
@@ -140,7 +136,7 @@ namespace WixToolsetTest.BuildTasks
140 "</Fragment>" + 136 "</Fragment>" +
141 "</Wix>", testXml); 137 "</Wix>", testXml);
142 138
143 var pdbPath = Path.Combine(binFolder, "HeatFileMultpleFilesSameFileName.wixpdb"); 139 var pdbPath = Path.Combine(binFolder, "HeatFileMultipleFilesSameFileName.wixpdb");
144 Assert.True(File.Exists(pdbPath)); 140 Assert.True(File.Exists(pdbPath));
145 141
146 var intermediate = Intermediate.Load(pdbPath); 142 var intermediate = Intermediate.Load(pdbPath);
diff --git a/src/test/WixToolsetTest.MSBuild/README.md b/src/test/WixToolsetTest.MSBuild/README.md
new file mode 100644
index 00000000..7faf34b9
--- /dev/null
+++ b/src/test/WixToolsetTest.MSBuild/README.md
@@ -0,0 +1,5 @@
1In order to properly test wix.targets,
2all of the supported architectures for WixToolset.BuildTasks need to be available in the layout used in the Nuget package.
3Making this happen on every build for the solution takes too long,
4so this project relies on manually running appveyor.cmd to publish everything before the tests can be run.
5appveyor.cmd needs to be ran again every time changes are made in other projects, including the targets themselves. \ No newline at end of file
diff --git a/src/test/WixToolsetTest.BuildTasks/TestData/HeatFileMultpleFilesSameFileName/HeatFileMultpleFilesSameFileName.wixproj b/src/test/WixToolsetTest.MSBuild/TestData/HeatFileMultipleFilesSameFileName/HeatFileMultipleFilesSameFileName.wixproj
index 860fc2dd..860fc2dd 100644
--- a/src/test/WixToolsetTest.BuildTasks/TestData/HeatFileMultpleFilesSameFileName/HeatFileMultpleFilesSameFileName.wixproj
+++ b/src/test/WixToolsetTest.MSBuild/TestData/HeatFileMultipleFilesSameFileName/HeatFileMultipleFilesSameFileName.wixproj
diff --git a/src/test/WixToolsetTest.BuildTasks/TestData/HeatFileMultpleFilesSameFileName/MyProgram.json b/src/test/WixToolsetTest.MSBuild/TestData/HeatFileMultipleFilesSameFileName/MyProgram.json
index 5f282702..5f282702 100644
--- a/src/test/WixToolsetTest.BuildTasks/TestData/HeatFileMultpleFilesSameFileName/MyProgram.json
+++ b/src/test/WixToolsetTest.MSBuild/TestData/HeatFileMultipleFilesSameFileName/MyProgram.json
diff --git a/src/test/WixToolsetTest.BuildTasks/TestData/HeatFileMultpleFilesSameFileName/MyProgram.txt b/src/test/WixToolsetTest.MSBuild/TestData/HeatFileMultipleFilesSameFileName/MyProgram.txt
index 5f282702..5f282702 100644
--- a/src/test/WixToolsetTest.BuildTasks/TestData/HeatFileMultpleFilesSameFileName/MyProgram.txt
+++ b/src/test/WixToolsetTest.MSBuild/TestData/HeatFileMultipleFilesSameFileName/MyProgram.txt
diff --git a/src/test/WixToolsetTest.BuildTasks/TestData/HeatFileMultpleFilesSameFileName/Package.wxs b/src/test/WixToolsetTest.MSBuild/TestData/HeatFileMultipleFilesSameFileName/Package.wxs
index 884da274..884da274 100644
--- a/src/test/WixToolsetTest.BuildTasks/TestData/HeatFileMultpleFilesSameFileName/Package.wxs
+++ b/src/test/WixToolsetTest.MSBuild/TestData/HeatFileMultipleFilesSameFileName/Package.wxs
diff --git a/src/test/WixToolsetTest.BuildTasks/TestData/HeatFilePackage/HeatFilePackage.wixproj b/src/test/WixToolsetTest.MSBuild/TestData/HeatFilePackage/HeatFilePackage.wixproj
index 87f4388a..87f4388a 100644
--- a/src/test/WixToolsetTest.BuildTasks/TestData/HeatFilePackage/HeatFilePackage.wixproj
+++ b/src/test/WixToolsetTest.MSBuild/TestData/HeatFilePackage/HeatFilePackage.wixproj
diff --git a/src/test/WixToolsetTest.BuildTasks/TestData/HeatFilePackage/Package.wxs b/src/test/WixToolsetTest.MSBuild/TestData/HeatFilePackage/Package.wxs
index e509c464..e509c464 100644
--- a/src/test/WixToolsetTest.BuildTasks/TestData/HeatFilePackage/Package.wxs
+++ b/src/test/WixToolsetTest.MSBuild/TestData/HeatFilePackage/Package.wxs
diff --git a/src/test/WixToolsetTest.BuildTasks/TestData/MultiCulturalMsiPackage/MsiPackage/MsiPackage.wixproj b/src/test/WixToolsetTest.MSBuild/TestData/MultiCulturalMsiPackage/MsiPackage/MsiPackage.wixproj
index e04ea43d..e04ea43d 100644
--- a/src/test/WixToolsetTest.BuildTasks/TestData/MultiCulturalMsiPackage/MsiPackage/MsiPackage.wixproj
+++ b/src/test/WixToolsetTest.MSBuild/TestData/MultiCulturalMsiPackage/MsiPackage/MsiPackage.wixproj
diff --git a/src/test/WixToolsetTest.BuildTasks/TestData/MultiCulturalMsiPackage/MsiPackage/Package.de-de.wxl b/src/test/WixToolsetTest.MSBuild/TestData/MultiCulturalMsiPackage/MsiPackage/Package.de-de.wxl
index 23493ace..23493ace 100644
--- a/src/test/WixToolsetTest.BuildTasks/TestData/MultiCulturalMsiPackage/MsiPackage/Package.de-de.wxl
+++ b/src/test/WixToolsetTest.MSBuild/TestData/MultiCulturalMsiPackage/MsiPackage/Package.de-de.wxl
diff --git a/src/test/WixToolsetTest.BuildTasks/TestData/MultiCulturalMsiPackage/MsiPackage/Package.en-us.wxl b/src/test/WixToolsetTest.MSBuild/TestData/MultiCulturalMsiPackage/MsiPackage/Package.en-us.wxl
index 38c12ac1..38c12ac1 100644
--- a/src/test/WixToolsetTest.BuildTasks/TestData/MultiCulturalMsiPackage/MsiPackage/Package.en-us.wxl
+++ b/src/test/WixToolsetTest.MSBuild/TestData/MultiCulturalMsiPackage/MsiPackage/Package.en-us.wxl
diff --git a/src/test/WixToolsetTest.BuildTasks/TestData/MultiCulturalMsiPackage/MsiPackage/Package.wxs b/src/test/WixToolsetTest.MSBuild/TestData/MultiCulturalMsiPackage/MsiPackage/Package.wxs
index d5a5a40d..d5a5a40d 100644
--- a/src/test/WixToolsetTest.BuildTasks/TestData/MultiCulturalMsiPackage/MsiPackage/Package.wxs
+++ b/src/test/WixToolsetTest.MSBuild/TestData/MultiCulturalMsiPackage/MsiPackage/Package.wxs
diff --git a/src/test/WixToolsetTest.BuildTasks/TestData/MultiCulturalMsiPackage/MsiPackage/PackageComponents.wxs b/src/test/WixToolsetTest.MSBuild/TestData/MultiCulturalMsiPackage/MsiPackage/PackageComponents.wxs
index e26c4509..e26c4509 100644
--- a/src/test/WixToolsetTest.BuildTasks/TestData/MultiCulturalMsiPackage/MsiPackage/PackageComponents.wxs
+++ b/src/test/WixToolsetTest.MSBuild/TestData/MultiCulturalMsiPackage/MsiPackage/PackageComponents.wxs
diff --git a/src/test/WixToolsetTest.BuildTasks/TestData/MultiCulturalMsiPackage/MsiPackage/data/test.txt b/src/test/WixToolsetTest.MSBuild/TestData/MultiCulturalMsiPackage/MsiPackage/data/test.txt
index cd0db0e1..cd0db0e1 100644
--- a/src/test/WixToolsetTest.BuildTasks/TestData/MultiCulturalMsiPackage/MsiPackage/data/test.txt
+++ b/src/test/WixToolsetTest.MSBuild/TestData/MultiCulturalMsiPackage/MsiPackage/data/test.txt
diff --git a/src/test/WixToolsetTest.BuildTasks/TestData/MultiCulturalMsiPackage/MultiCulturalMsiPackage.sln b/src/test/WixToolsetTest.MSBuild/TestData/MultiCulturalMsiPackage/MultiCulturalMsiPackage.sln
index 2c88704e..2c88704e 100644
--- a/src/test/WixToolsetTest.BuildTasks/TestData/MultiCulturalMsiPackage/MultiCulturalMsiPackage.sln
+++ b/src/test/WixToolsetTest.MSBuild/TestData/MultiCulturalMsiPackage/MultiCulturalMsiPackage.sln
diff --git a/src/test/WixToolsetTest.BuildTasks/TestData/SimpleMsiPackage/MsiPackage/MsiPackage.wixproj b/src/test/WixToolsetTest.MSBuild/TestData/SimpleMsiPackage/MsiPackage/MsiPackage.wixproj
index d5cac8d8..d5cac8d8 100644
--- a/src/test/WixToolsetTest.BuildTasks/TestData/SimpleMsiPackage/MsiPackage/MsiPackage.wixproj
+++ b/src/test/WixToolsetTest.MSBuild/TestData/SimpleMsiPackage/MsiPackage/MsiPackage.wixproj
diff --git a/src/test/WixToolsetTest.BuildTasks/TestData/SimpleMsiPackage/MsiPackage/Package.en-us.wxl b/src/test/WixToolsetTest.MSBuild/TestData/SimpleMsiPackage/MsiPackage/Package.en-us.wxl
index 38c12ac1..38c12ac1 100644
--- a/src/test/WixToolsetTest.BuildTasks/TestData/SimpleMsiPackage/MsiPackage/Package.en-us.wxl
+++ b/src/test/WixToolsetTest.MSBuild/TestData/SimpleMsiPackage/MsiPackage/Package.en-us.wxl
diff --git a/src/test/WixToolsetTest.BuildTasks/TestData/SimpleMsiPackage/MsiPackage/Package.wxs b/src/test/WixToolsetTest.MSBuild/TestData/SimpleMsiPackage/MsiPackage/Package.wxs
index f7998fff..f7998fff 100644
--- a/src/test/WixToolsetTest.BuildTasks/TestData/SimpleMsiPackage/MsiPackage/Package.wxs
+++ b/src/test/WixToolsetTest.MSBuild/TestData/SimpleMsiPackage/MsiPackage/Package.wxs
diff --git a/src/test/WixToolsetTest.BuildTasks/TestData/SimpleMsiPackage/MsiPackage/PackageComponents.wxs b/src/test/WixToolsetTest.MSBuild/TestData/SimpleMsiPackage/MsiPackage/PackageComponents.wxs
index ddb95faf..ddb95faf 100644
--- a/src/test/WixToolsetTest.BuildTasks/TestData/SimpleMsiPackage/MsiPackage/PackageComponents.wxs
+++ b/src/test/WixToolsetTest.MSBuild/TestData/SimpleMsiPackage/MsiPackage/PackageComponents.wxs
diff --git a/src/test/WixToolsetTest.BuildTasks/TestData/SimpleMsiPackage/MsiPackage/data/test.txt b/src/test/WixToolsetTest.MSBuild/TestData/SimpleMsiPackage/MsiPackage/data/test.txt
index cd0db0e1..cd0db0e1 100644
--- a/src/test/WixToolsetTest.BuildTasks/TestData/SimpleMsiPackage/MsiPackage/data/test.txt
+++ b/src/test/WixToolsetTest.MSBuild/TestData/SimpleMsiPackage/MsiPackage/data/test.txt
diff --git a/src/test/WixToolsetTest.BuildTasks/TestData/SimpleMsiPackage/SimpleBundle/Bundle.wxs b/src/test/WixToolsetTest.MSBuild/TestData/SimpleMsiPackage/SimpleBundle/Bundle.wxs
index 6cd04712..6cd04712 100644
--- a/src/test/WixToolsetTest.BuildTasks/TestData/SimpleMsiPackage/SimpleBundle/Bundle.wxs
+++ b/src/test/WixToolsetTest.MSBuild/TestData/SimpleMsiPackage/SimpleBundle/Bundle.wxs
diff --git a/src/test/WixToolsetTest.BuildTasks/TestData/SimpleMsiPackage/SimpleBundle/SimpleBundle.wixproj b/src/test/WixToolsetTest.MSBuild/TestData/SimpleMsiPackage/SimpleBundle/SimpleBundle.wixproj
index 4c837936..4c837936 100644
--- a/src/test/WixToolsetTest.BuildTasks/TestData/SimpleMsiPackage/SimpleBundle/SimpleBundle.wixproj
+++ b/src/test/WixToolsetTest.MSBuild/TestData/SimpleMsiPackage/SimpleBundle/SimpleBundle.wixproj
diff --git a/src/test/WixToolsetTest.BuildTasks/TestData/SimpleMsiPackage/SimpleMsiPackage.sln b/src/test/WixToolsetTest.MSBuild/TestData/SimpleMsiPackage/SimpleMsiPackage.sln
index dd21489d..dd21489d 100644
--- a/src/test/WixToolsetTest.BuildTasks/TestData/SimpleMsiPackage/SimpleMsiPackage.sln
+++ b/src/test/WixToolsetTest.MSBuild/TestData/SimpleMsiPackage/SimpleMsiPackage.sln
diff --git a/src/test/WixToolsetTest.MSBuild/WixToolsetTest.MSBuild.csproj b/src/test/WixToolsetTest.MSBuild/WixToolsetTest.MSBuild.csproj
new file mode 100644
index 00000000..bb109557
--- /dev/null
+++ b/src/test/WixToolsetTest.MSBuild/WixToolsetTest.MSBuild.csproj
@@ -0,0 +1,43 @@
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. -->
3
4<Project Sdk="Microsoft.NET.Sdk">
5 <PropertyGroup>
6 <TargetFramework>net461</TargetFramework>
7 <IsPackable>false</IsPackable>
8 <DebugType>embedded</DebugType>
9 </PropertyGroup>
10
11 <ItemGroup>
12 <Content Include="TestData\HeatFilePackage\HeatFilePackage.wixproj" CopyToOutputDirectory="PreserveNewest" />
13 <Content Include="TestData\HeatFilePackage\Package.wxs" CopyToOutputDirectory="PreserveNewest" />
14 <Content Include="TestData\HeatFileMultipleFilesSameFileName\HeatFileMultipleFilesSameFileName.wixproj" CopyToOutputDirectory="PreserveNewest" />
15 <Content Include="TestData\HeatFileMultipleFilesSameFileName\Package.wxs" CopyToOutputDirectory="PreserveNewest" />
16 <Content Include="TestData\HeatFileMultipleFilesSameFileName\MyProgram.txt" CopyToOutputDirectory="PreserveNewest" />
17 <Content Include="TestData\HeatFileMultipleFilesSameFileName\MyProgram.json" CopyToOutputDirectory="PreserveNewest" />
18 <Content Include="TestData\MultiCulturalMsiPackage\MsiPackage\MsiPackage.wixproj" CopyToOutputDirectory="PreserveNewest" />
19 <Content Include="TestData\MultiCulturalMsiPackage\MsiPackage\Package.de-de.wxl" CopyToOutputDirectory="PreserveNewest" />
20 <Content Include="TestData\MultiCulturalMsiPackage\MsiPackage\Package.en-us.wxl" CopyToOutputDirectory="PreserveNewest" />
21 <Content Include="TestData\MultiCulturalMsiPackage\MsiPackage\Package.wxs" CopyToOutputDirectory="PreserveNewest" />
22 <Content Include="TestData\MultiCulturalMsiPackage\MsiPackage\PackageComponents.wxs" CopyToOutputDirectory="PreserveNewest" />
23 <Content Include="TestData\MultiCulturalMsiPackage\MsiPackage\data\test.txt" CopyToOutputDirectory="PreserveNewest" />
24 <Content Include="TestData\SimpleMsiPackage\MsiPackage\MsiPackage.wixproj" CopyToOutputDirectory="PreserveNewest" />
25 <Content Include="TestData\SimpleMsiPackage\MsiPackage\Package.en-us.wxl" CopyToOutputDirectory="PreserveNewest" />
26 <Content Include="TestData\SimpleMsiPackage\MsiPackage\Package.wxs" CopyToOutputDirectory="PreserveNewest" />
27 <Content Include="TestData\SimpleMsiPackage\MsiPackage\PackageComponents.wxs" CopyToOutputDirectory="PreserveNewest" />
28 <Content Include="TestData\SimpleMsiPackage\MsiPackage\data\test.txt" CopyToOutputDirectory="PreserveNewest" />
29 <Content Include="TestData\SimpleMsiPackage\SimpleBundle\Bundle.wxs" CopyToOutputDirectory="PreserveNewest" />
30 <Content Include="TestData\SimpleMsiPackage\SimpleBundle\SimpleBundle.wixproj" CopyToOutputDirectory="PreserveNewest" />
31 </ItemGroup>
32
33 <ItemGroup>
34 <PackageReference Include="WixBuildTools.TestSupport" Version="4.0.*" />
35 <PackageReference Include="WixToolset.Core.TestPackage" Version="4.0.*" />
36 </ItemGroup>
37
38 <ItemGroup>
39 <PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.3.0" />
40 <PackageReference Include="xunit" Version="2.4.1" />
41 <PackageReference Include="xunit.runner.visualstudio" Version="2.4.1" PrivateAssets="All" />
42 </ItemGroup>
43</Project>
diff --git a/src/test/WixToolsetTest.MSBuild/WixToolsetTest.MSBuild.v3.ncrunchproject b/src/test/WixToolsetTest.MSBuild/WixToolsetTest.MSBuild.v3.ncrunchproject
new file mode 100644
index 00000000..cf22dfa9
--- /dev/null
+++ b/src/test/WixToolsetTest.MSBuild/WixToolsetTest.MSBuild.v3.ncrunchproject
@@ -0,0 +1,5 @@
1<ProjectConfiguration>
2 <Settings>
3 <HiddenComponentWarnings />
4 </Settings>
5</ProjectConfiguration> \ No newline at end of file