diff options
Diffstat (limited to 'src/test')
3 files changed, 21 insertions, 2 deletions
diff --git a/src/test/WixToolsetTest.BuildTasks/MsbuildFixture.cs b/src/test/WixToolsetTest.BuildTasks/MsbuildFixture.cs index 0c225390..0768f863 100644 --- a/src/test/WixToolsetTest.BuildTasks/MsbuildFixture.cs +++ b/src/test/WixToolsetTest.BuildTasks/MsbuildFixture.cs | |||
@@ -11,7 +11,8 @@ namespace WixToolsetTest.BuildTasks | |||
11 | 11 | ||
12 | public class MsbuildFixture | 12 | public class MsbuildFixture |
13 | { | 13 | { |
14 | private static readonly string WixTargetsPath = Path.Combine(Path.GetDirectoryName(new Uri(typeof(WixBuild).Assembly.CodeBase).AbsolutePath), "wix.targets"); | 14 | private static readonly string WixBinPath = Path.GetDirectoryName(new Uri(typeof(WixBuild).Assembly.CodeBase).AbsolutePath) + "\\"; |
15 | private static readonly string WixTargetsPath = Path.Combine(WixBinPath, "wix.targets"); | ||
15 | 16 | ||
16 | [Fact] | 17 | [Fact] |
17 | public void CanBuildSimpleBundle() | 18 | public void CanBuildSimpleBundle() |
@@ -27,6 +28,7 @@ namespace WixToolsetTest.BuildTasks | |||
27 | var result = MsbuildRunner.Execute(projectPath, new[] | 28 | var result = MsbuildRunner.Execute(projectPath, new[] |
28 | { | 29 | { |
29 | $"-p:WixTargetsPath={WixTargetsPath}", | 30 | $"-p:WixTargetsPath={WixTargetsPath}", |
31 | $"-p:WixBinDir={WixBinPath}", | ||
30 | $"-p:IntermediateOutputPath={intermediateFolder}", | 32 | $"-p:IntermediateOutputPath={intermediateFolder}", |
31 | $"-p:OutputPath={binFolder}" | 33 | $"-p:OutputPath={binFolder}" |
32 | }); | 34 | }); |
@@ -64,6 +66,7 @@ namespace WixToolsetTest.BuildTasks | |||
64 | var result = MsbuildRunner.Execute(projectPath, new[] | 66 | var result = MsbuildRunner.Execute(projectPath, new[] |
65 | { | 67 | { |
66 | $"-p:WixTargetsPath={WixTargetsPath}", | 68 | $"-p:WixTargetsPath={WixTargetsPath}", |
69 | $"-p:WixBinDir={WixBinPath}", | ||
67 | $"-p:IntermediateOutputPath={intermediateFolder}", | 70 | $"-p:IntermediateOutputPath={intermediateFolder}", |
68 | $"-p:OutputPath={binFolder}" | 71 | $"-p:OutputPath={binFolder}" |
69 | }); | 72 | }); |
@@ -126,6 +129,7 @@ namespace WixToolsetTest.BuildTasks | |||
126 | { | 129 | { |
127 | wixpdbType == null ? String.Empty : $"-p:WixPdbType={wixpdbType}", | 130 | wixpdbType == null ? String.Empty : $"-p:WixPdbType={wixpdbType}", |
128 | $"-p:WixTargetsPath={WixTargetsPath}", | 131 | $"-p:WixTargetsPath={WixTargetsPath}", |
132 | $"-p:WixBinDir={WixBinPath}", | ||
129 | $"-p:IntermediateOutputPath={intermediateFolder}", | 133 | $"-p:IntermediateOutputPath={intermediateFolder}", |
130 | $"-p:OutputPath={binFolder}", | 134 | $"-p:OutputPath={binFolder}", |
131 | }); | 135 | }); |
@@ -153,6 +157,7 @@ namespace WixToolsetTest.BuildTasks | |||
153 | var result = MsbuildRunner.Execute(projectPath, new[] | 157 | var result = MsbuildRunner.Execute(projectPath, new[] |
154 | { | 158 | { |
155 | $"-p:WixTargetsPath={WixTargetsPath}", | 159 | $"-p:WixTargetsPath={WixTargetsPath}", |
160 | $"-p:WixBinDir={WixBinPath}", | ||
156 | $"-p:IntermediateOutputPath={intermediateFolder}", | 161 | $"-p:IntermediateOutputPath={intermediateFolder}", |
157 | $"-p:OutputPath={binFolder}", | 162 | $"-p:OutputPath={binFolder}", |
158 | $"-p:InstallerPlatform=x64", | 163 | $"-p:InstallerPlatform=x64", |
@@ -178,6 +183,7 @@ namespace WixToolsetTest.BuildTasks | |||
178 | var result = MsbuildRunner.Execute(projectPath, new[] | 183 | var result = MsbuildRunner.Execute(projectPath, new[] |
179 | { | 184 | { |
180 | $"-p:WixTargetsPath={WixTargetsPath}", | 185 | $"-p:WixTargetsPath={WixTargetsPath}", |
186 | $"-p:WixBinDir={WixBinPath}", | ||
181 | $"-p:IntermediateOutputPath={intermediateFolder}", | 187 | $"-p:IntermediateOutputPath={intermediateFolder}", |
182 | $"-p:OutputPath={binFolder}", | 188 | $"-p:OutputPath={binFolder}", |
183 | "-p:SuppressIces=\"ICE45;ICE46\"" | 189 | "-p:SuppressIces=\"ICE45;ICE46\"" |
@@ -200,6 +206,7 @@ namespace WixToolsetTest.BuildTasks | |||
200 | var result = MsbuildRunner.Execute(projectPath, new[] | 206 | var result = MsbuildRunner.Execute(projectPath, new[] |
201 | { | 207 | { |
202 | $"-p:WixTargetsPath={WixTargetsPath}", | 208 | $"-p:WixTargetsPath={WixTargetsPath}", |
209 | $"-p:WixBinDir={WixBinPath}", | ||
203 | $"-p:IntermediateOutputPath={intermediateFolder}", | 210 | $"-p:IntermediateOutputPath={intermediateFolder}", |
204 | $"-p:OutputPath={binFolder}", | 211 | $"-p:OutputPath={binFolder}", |
205 | "-p:SuppressSpecificWarnings=\"1118;1102\"" | 212 | "-p:SuppressSpecificWarnings=\"1118;1102\"" |
@@ -225,6 +232,7 @@ namespace WixToolsetTest.BuildTasks | |||
225 | var result = MsbuildRunner.Execute(projectPath, new[] | 232 | var result = MsbuildRunner.Execute(projectPath, new[] |
226 | { | 233 | { |
227 | $"-p:WixTargetsPath={WixTargetsPath}", | 234 | $"-p:WixTargetsPath={WixTargetsPath}", |
235 | $"-p:WixBinDir={WixBinPath}", | ||
228 | $"-p:IntermediateOutputPath={intermediateFolder}", | 236 | $"-p:IntermediateOutputPath={intermediateFolder}", |
229 | $"-p:OutputPath={binFolder}", | 237 | $"-p:OutputPath={binFolder}", |
230 | "-p:OutputType=IntermediatePostLink" | 238 | "-p:OutputType=IntermediatePostLink" |
@@ -253,6 +261,7 @@ namespace WixToolsetTest.BuildTasks | |||
253 | var result = MsbuildRunner.Execute(projectPath, new[] | 261 | var result = MsbuildRunner.Execute(projectPath, new[] |
254 | { | 262 | { |
255 | $"-p:WixTargetsPath={WixTargetsPath}", | 263 | $"-p:WixTargetsPath={WixTargetsPath}", |
264 | $"-p:WixBinDir={WixBinPath}", | ||
256 | $"-p:IntermediateOutputPath={intermediateFolder}", | 265 | $"-p:IntermediateOutputPath={intermediateFolder}", |
257 | $"-p:OutputPath={binFolder}", | 266 | $"-p:OutputPath={binFolder}", |
258 | "-v:diag" | 267 | "-v:diag" |
@@ -271,6 +280,7 @@ namespace WixToolsetTest.BuildTasks | |||
271 | result = MsbuildRunner.Execute(projectPath, new[] | 280 | result = MsbuildRunner.Execute(projectPath, new[] |
272 | { | 281 | { |
273 | $"-p:WixTargetsPath={WixTargetsPath}", | 282 | $"-p:WixTargetsPath={WixTargetsPath}", |
283 | $"-p:WixBinDir={WixBinPath}", | ||
274 | $"-p:IntermediateOutputPath={intermediateFolder}", | 284 | $"-p:IntermediateOutputPath={intermediateFolder}", |
275 | $"-p:OutputPath={binFolder}", | 285 | $"-p:OutputPath={binFolder}", |
276 | "-t:Clean", | 286 | "-t:Clean", |
diff --git a/src/test/WixToolsetTest.BuildTasks/MsbuildHeatFixture.cs b/src/test/WixToolsetTest.BuildTasks/MsbuildHeatFixture.cs index 13dd0160..95805658 100644 --- a/src/test/WixToolsetTest.BuildTasks/MsbuildHeatFixture.cs +++ b/src/test/WixToolsetTest.BuildTasks/MsbuildHeatFixture.cs | |||
@@ -14,7 +14,8 @@ namespace WixToolsetTest.BuildTasks | |||
14 | 14 | ||
15 | public class MsbuildHeatFixture | 15 | public class MsbuildHeatFixture |
16 | { | 16 | { |
17 | private static readonly string WixTargetsPath = Path.Combine(Path.GetDirectoryName(new Uri(typeof(HeatTask).Assembly.CodeBase).AbsolutePath), "wix.targets"); | 17 | private static readonly string WixBinPath = Path.GetDirectoryName(new Uri(typeof(WixBuild).Assembly.CodeBase).AbsolutePath) + "\\"; |
18 | private static readonly string WixTargetsPath = Path.Combine(WixBinPath, "wix.targets"); | ||
18 | 19 | ||
19 | [Fact] | 20 | [Fact] |
20 | public void CanBuildHeatFilePackage() | 21 | public void CanBuildHeatFilePackage() |
@@ -30,6 +31,7 @@ namespace WixToolsetTest.BuildTasks | |||
30 | var result = MsbuildRunner.Execute(projectPath, new[] | 31 | var result = MsbuildRunner.Execute(projectPath, new[] |
31 | { | 32 | { |
32 | $"-p:WixTargetsPath={WixTargetsPath}", | 33 | $"-p:WixTargetsPath={WixTargetsPath}", |
34 | $"-p:WixBinDir={WixBinPath}", | ||
33 | $"-p:IntermediateOutputPath={intermediateFolder}", | 35 | $"-p:IntermediateOutputPath={intermediateFolder}", |
34 | $"-p:OutputPath={binFolder}" | 36 | $"-p:OutputPath={binFolder}" |
35 | }); | 37 | }); |
@@ -86,6 +88,7 @@ namespace WixToolsetTest.BuildTasks | |||
86 | var result = MsbuildRunner.Execute(projectPath, new[] | 88 | var result = MsbuildRunner.Execute(projectPath, new[] |
87 | { | 89 | { |
88 | $"-p:WixTargetsPath={WixTargetsPath}", | 90 | $"-p:WixTargetsPath={WixTargetsPath}", |
91 | $"-p:WixBinDir={WixBinPath}", | ||
89 | $"-p:IntermediateOutputPath={intermediateFolder}", | 92 | $"-p:IntermediateOutputPath={intermediateFolder}", |
90 | $"-p:OutputPath={binFolder}" | 93 | $"-p:OutputPath={binFolder}" |
91 | }); | 94 | }); |
diff --git a/src/test/WixToolsetTest.BuildTasks/WixToolsetTest.BuildTasks.csproj b/src/test/WixToolsetTest.BuildTasks/WixToolsetTest.BuildTasks.csproj index 333c7c79..9fb2bc82 100644 --- a/src/test/WixToolsetTest.BuildTasks/WixToolsetTest.BuildTasks.csproj +++ b/src/test/WixToolsetTest.BuildTasks/WixToolsetTest.BuildTasks.csproj | |||
@@ -32,6 +32,12 @@ | |||
32 | </ItemGroup> | 32 | </ItemGroup> |
33 | 33 | ||
34 | <ItemGroup> | 34 | <ItemGroup> |
35 | <Content Include="..\..\WixToolset.MSBuild\wix.harvest.targets" Link="wix.harvest.targets" CopyToOutputDirectory="PreserveNewest" /> | ||
36 | <Content Include="..\..\WixToolset.MSBuild\wix.signing.targets" Link="wix.signing.targets" CopyToOutputDirectory="PreserveNewest" /> | ||
37 | <Content Include="..\..\WixToolset.MSBuild\wix.targets" Link="wix.targets" CopyToOutputDirectory="PreserveNewest" /> | ||
38 | </ItemGroup> | ||
39 | |||
40 | <ItemGroup> | ||
35 | <ProjectReference Include="..\..\WixToolset.BuildTasks\WixToolset.BuildTasks.csproj" /> | 41 | <ProjectReference Include="..\..\WixToolset.BuildTasks\WixToolset.BuildTasks.csproj" /> |
36 | </ItemGroup> | 42 | </ItemGroup> |
37 | 43 | ||