diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/WixToolsetTest.MSBuild/MsbuildFixture.cs (renamed from src/test/WixToolsetTest.BuildTasks/MsbuildFixture.cs) | 15 |
1 files changed, 2 insertions, 13 deletions
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 | ||
3 | namespace WixToolsetTest.BuildTasks | 3 | namespace 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", |