aboutsummaryrefslogtreecommitdiff
path: root/src/test/CompileCoreTestExtensionWixlib
diff options
context:
space:
mode:
authorRob Mensching <rob@firegiant.com>2021-04-22 17:19:56 -0700
committerRob Mensching <rob@firegiant.com>2021-04-29 19:53:52 -0700
commit8cf0427984a88b0b3ddfb2061e5be721afffe82e (patch)
tree22e2aaf7665d5ab6d3dc2a8ce8f05d73080d1f20 /src/test/CompileCoreTestExtensionWixlib
parent8426095723fb8530a321260473ab543151bf8c98 (diff)
downloadwix-8cf0427984a88b0b3ddfb2061e5be721afffe82e.tar.gz
wix-8cf0427984a88b0b3ddfb2061e5be721afffe82e.tar.bz2
wix-8cf0427984a88b0b3ddfb2061e5be721afffe82e.zip
Move Core into wix
Diffstat (limited to 'src/test/CompileCoreTestExtensionWixlib')
-rw-r--r--src/test/CompileCoreTestExtensionWixlib/CompileCoreTestExtensionWixlib.csproj32
-rw-r--r--src/test/CompileCoreTestExtensionWixlib/Program.cs37
2 files changed, 0 insertions, 69 deletions
diff --git a/src/test/CompileCoreTestExtensionWixlib/CompileCoreTestExtensionWixlib.csproj b/src/test/CompileCoreTestExtensionWixlib/CompileCoreTestExtensionWixlib.csproj
deleted file mode 100644
index 88210bd4..00000000
--- a/src/test/CompileCoreTestExtensionWixlib/CompileCoreTestExtensionWixlib.csproj
+++ /dev/null
@@ -1,32 +0,0 @@
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>netcoreapp3.1</TargetFramework>
7 <IsPackable>false</IsPackable>
8 <OutputType>Exe</OutputType>
9 </PropertyGroup>
10
11 <ItemGroup>
12 <ProjectReference Include="..\..\WixToolset.Core.TestPackage\WixToolset.Core.TestPackage.csproj" />
13 </ItemGroup>
14
15 <ItemGroup>
16 <ExtensionWxs Include="..\Example.Extension\Data\example.wxs">
17 <WixlibPath>$(BaseOutputPath)TestData\$(Configuration)\example.wixlib</WixlibPath>
18 </ExtensionWxs>
19 </ItemGroup>
20
21 <Target Name="BuildExtensionWixlibs"
22 AfterTargets="AfterBuild"
23 Inputs="@(ExtensionWxs)"
24 Outputs="%(ExtensionWxs.WixlibPath)"
25 Condition=" '$(NCrunch)'!='1' ">
26
27 <Exec Command="dotnet @(TargetPathWithTargetPlatformMoniker) &quot;$(IntermediateOutputPath) &quot; &quot;%(ExtensionWxs.WixlibPath)&quot; &quot;%(ExtensionWxs.Filename)%(ExtensionWxs.Extension)&quot;"
28 WorkingDirectory="%(ExtensionWxs.RelativeDir)" />
29
30 <Message Importance="high" Text="@(ExtensionWxs) -&gt; %(ExtensionWxs.WixlibPath)" />
31 </Target>
32</Project>
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
3using System.Collections.Generic;
4using WixToolset.Core.TestPackage;
5
6namespace 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}