diff options
Diffstat (limited to 'src/test/CompileCoreTestExtensionWixlib/Program.cs')
-rw-r--r-- | src/test/CompileCoreTestExtensionWixlib/Program.cs | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/src/test/CompileCoreTestExtensionWixlib/Program.cs b/src/test/CompileCoreTestExtensionWixlib/Program.cs deleted file mode 100644 index 323b5e5e..00000000 --- a/src/test/CompileCoreTestExtensionWixlib/Program.cs +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
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 | |||
3 | using System.Collections.Generic; | ||
4 | using WixToolset.Core.TestPackage; | ||
5 | |||
6 | namespace CompileCoreTestExtensionWixlib | ||
7 | { | ||
8 | // We want to be able to test Core with extensions, but there's no easy way to build an extension without Tools. | ||
9 | // So we have this helper exe. | ||
10 | public class Program | ||
11 | { | ||
12 | public static void Main(string[] args) | ||
13 | { | ||
14 | var intermediateFolder = args[0]; | ||
15 | var wixlibPath = args[1]; | ||
16 | |||
17 | var buildArgs = new List<string>(); | ||
18 | buildArgs.Add("build"); | ||
19 | buildArgs.Add("-bindfiles"); | ||
20 | buildArgs.Add("-bindpath"); | ||
21 | buildArgs.Add("Data"); | ||
22 | buildArgs.Add("-intermediateFolder"); | ||
23 | buildArgs.Add(intermediateFolder); | ||
24 | buildArgs.Add("-o"); | ||
25 | buildArgs.Add(wixlibPath); | ||
26 | |||
27 | foreach (var path in args[2].Split(';')) | ||
28 | { | ||
29 | buildArgs.Add(path); | ||
30 | } | ||
31 | |||
32 | var result = WixRunner.Execute(buildArgs.ToArray()); | ||
33 | |||
34 | result.AssertSuccess(); | ||
35 | } | ||
36 | } | ||
37 | } | ||