aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Arnson <bob@firegiant.com>2020-03-27 18:05:18 -0400
committerBob Arnson <bob@firegiant.com>2020-03-27 18:10:17 -0400
commit192c5aa59b5d8e5e9df9095982317c224f3d4f04 (patch)
tree4a62d949b34c018ec66104cf3c82f57e10b8421f
parent1adfdda935b814541693cd550bb34fdbf2942b1f (diff)
downloadwix-192c5aa59b5d8e5e9df9095982317c224f3d4f04.tar.gz
wix-192c5aa59b5d8e5e9df9095982317c224f3d4f04.tar.bz2
wix-192c5aa59b5d8e5e9df9095982317c224f3d4f04.zip
Fix bundle-build extension library extraction.
-rw-r--r--src/WixToolset.Core.Burn/Bind/BindBundleCommand.cs9
-rw-r--r--src/test/CompileCoreTestExtensionWixlib/CompileCoreTestExtensionWixlib.csproj4
-rw-r--r--src/test/CompileCoreTestExtensionWixlib/Program.cs12
-rw-r--r--src/test/Example.Extension/Example.Extension.csproj2
-rw-r--r--src/test/WixToolsetTest.CoreIntegration/BundleFixture.cs10
-rw-r--r--src/test/WixToolsetTest.CoreIntegration/WixiplFixture.cs4
6 files changed, 17 insertions, 24 deletions
diff --git a/src/WixToolset.Core.Burn/Bind/BindBundleCommand.cs b/src/WixToolset.Core.Burn/Bind/BindBundleCommand.cs
index da655469..9f98483f 100644
--- a/src/WixToolset.Core.Burn/Bind/BindBundleCommand.cs
+++ b/src/WixToolset.Core.Burn/Bind/BindBundleCommand.cs
@@ -122,14 +122,11 @@ namespace WixToolset.Core.Burn
122 // of this in the 4.0 timeframe. 122 // of this in the 4.0 timeframe.
123 var orderedSearches = this.OrderSearches(section); 123 var orderedSearches = this.OrderSearches(section);
124 124
125#if THIS_SHOULD_BE_DELETED_SINCE_RESOLVE_DOES_THIS_NOW 125 // Extract files that come from binary .wixlibs and WixExtensions (this does not extract files from merge modules).
126 // Extract files that come from cabinet files (this does not extract files from merge modules).
127 { 126 {
128 var extractEmbeddedFilesCommand = new ExtractEmbeddedFilesCommand(); 127 var command = new ExtractEmbeddedFilesCommand(this.ExpectedEmbeddedFiles);
129 extractEmbeddedFilesCommand.FilesWithEmbeddedFiles = ExpectedEmbeddedFiles; 128 command.Execute();
130 extractEmbeddedFilesCommand.Execute();
131 } 129 }
132#endif
133 130
134 // Get the explicit payloads. 131 // Get the explicit payloads.
135 var payloadTuples = section.Tuples.OfType<WixBundlePayloadTuple>().ToDictionary(t => t.Id.Id); 132 var payloadTuples = section.Tuples.OfType<WixBundlePayloadTuple>().ToDictionary(t => t.Id.Id);
diff --git a/src/test/CompileCoreTestExtensionWixlib/CompileCoreTestExtensionWixlib.csproj b/src/test/CompileCoreTestExtensionWixlib/CompileCoreTestExtensionWixlib.csproj
index 4bc1d02b..7e5c33ef 100644
--- a/src/test/CompileCoreTestExtensionWixlib/CompileCoreTestExtensionWixlib.csproj
+++ b/src/test/CompileCoreTestExtensionWixlib/CompileCoreTestExtensionWixlib.csproj
@@ -1,9 +1,9 @@
1<?xml version="1.0" encoding="utf-8"?> 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. --> 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 3
4<Project Sdk="Microsoft.NET.Sdk"> 4<Project Sdk="Microsoft.NET.Sdk">
5 <PropertyGroup> 5 <PropertyGroup>
6 <TargetFrameworks>net461</TargetFrameworks> 6 <TargetFramework>net472</TargetFramework>
7 <OutputType>Exe</OutputType> 7 <OutputType>Exe</OutputType>
8 </PropertyGroup> 8 </PropertyGroup>
9 9
diff --git a/src/test/CompileCoreTestExtensionWixlib/Program.cs b/src/test/CompileCoreTestExtensionWixlib/Program.cs
index 308ab8a2..323b5e5e 100644
--- a/src/test/CompileCoreTestExtensionWixlib/Program.cs
+++ b/src/test/CompileCoreTestExtensionWixlib/Program.cs
@@ -16,15 +16,19 @@ namespace CompileCoreTestExtensionWixlib
16 16
17 var buildArgs = new List<string>(); 17 var buildArgs = new List<string>();
18 buildArgs.Add("build"); 18 buildArgs.Add("build");
19 foreach (var path in args[2].Split(';')) 19 buildArgs.Add("-bindfiles");
20 { 20 buildArgs.Add("-bindpath");
21 buildArgs.Add(path); 21 buildArgs.Add("Data");
22 }
23 buildArgs.Add("-intermediateFolder"); 22 buildArgs.Add("-intermediateFolder");
24 buildArgs.Add(intermediateFolder); 23 buildArgs.Add(intermediateFolder);
25 buildArgs.Add("-o"); 24 buildArgs.Add("-o");
26 buildArgs.Add(wixlibPath); 25 buildArgs.Add(wixlibPath);
27 26
27 foreach (var path in args[2].Split(';'))
28 {
29 buildArgs.Add(path);
30 }
31
28 var result = WixRunner.Execute(buildArgs.ToArray()); 32 var result = WixRunner.Execute(buildArgs.ToArray());
29 33
30 result.AssertSuccess(); 34 result.AssertSuccess();
diff --git a/src/test/Example.Extension/Example.Extension.csproj b/src/test/Example.Extension/Example.Extension.csproj
index e9483c72..8b4d4e86 100644
--- a/src/test/Example.Extension/Example.Extension.csproj
+++ b/src/test/Example.Extension/Example.Extension.csproj
@@ -24,7 +24,7 @@
24 24
25 <Target Name="SetExtensionWixlib"> 25 <Target Name="SetExtensionWixlib">
26 <PropertyGroup> 26 <PropertyGroup>
27 <CompileWixlibExePath>$(OutputPath)..\net461\CompileCoreTestExtensionWixlib.exe</CompileWixlibExePath> 27 <CompileWixlibExePath>$(OutputPath)..\net472\CompileCoreTestExtensionWixlib.exe</CompileWixlibExePath>
28 <WixlibPath>$(IntermediateOutputPath)Example.wixlib</WixlibPath> 28 <WixlibPath>$(IntermediateOutputPath)Example.wixlib</WixlibPath>
29 </PropertyGroup> 29 </PropertyGroup>
30 30
diff --git a/src/test/WixToolsetTest.CoreIntegration/BundleFixture.cs b/src/test/WixToolsetTest.CoreIntegration/BundleFixture.cs
index 0e127e6e..58f61ab8 100644
--- a/src/test/WixToolsetTest.CoreIntegration/BundleFixture.cs
+++ b/src/test/WixToolsetTest.CoreIntegration/BundleFixture.cs
@@ -101,7 +101,7 @@ namespace WixToolsetTest.CoreIntegration
101 } 101 }
102 } 102 }
103 103
104 [Fact(Skip = "Test demonstrates failure")] 104 [Fact]
105 public void CanBuildSimpleBundleUsingExtensionBA() 105 public void CanBuildSimpleBundleUsingExtensionBA()
106 { 106 {
107 var burnStubPath = TestData.Get(@"TestData\.Data\burn.exe"); 107 var burnStubPath = TestData.Get(@"TestData\.Data\burn.exe");
@@ -113,14 +113,6 @@ namespace WixToolsetTest.CoreIntegration
113 var baseFolder = fs.GetFolder(); 113 var baseFolder = fs.GetFolder();
114 var intermediateFolder = Path.Combine(baseFolder, "obj"); 114 var intermediateFolder = Path.Combine(baseFolder, "obj");
115 115
116 var libResult = WixRunner.Execute(new[]
117 {
118 "build",
119 Path.Combine(@"C:\src\mynewwix4\Core\src\test\Example.Extension\Data", "example.wxs"),
120 "-intermediateFolder", intermediateFolder,
121 "-o", Path.Combine(intermediateFolder, @"test.wixlib")
122 });
123
124 var result = WixRunner.Execute(new[] 116 var result = WixRunner.Execute(new[]
125 { 117 {
126 "build", 118 "build",
diff --git a/src/test/WixToolsetTest.CoreIntegration/WixiplFixture.cs b/src/test/WixToolsetTest.CoreIntegration/WixiplFixture.cs
index b3d7da26..25067830 100644
--- a/src/test/WixToolsetTest.CoreIntegration/WixiplFixture.cs
+++ b/src/test/WixToolsetTest.CoreIntegration/WixiplFixture.cs
@@ -103,7 +103,7 @@ namespace WixToolsetTest.CoreIntegration
103 } 103 }
104 } 104 }
105 105
106 [Fact(Skip = "Test demonstrates failure")] 106 [Fact]
107 public void CanBuildMsiUsingExtensionLibrary() 107 public void CanBuildMsiUsingExtensionLibrary()
108 { 108 {
109 var folder = TestData.Get(@"TestData\Wixipl"); 109 var folder = TestData.Get(@"TestData\Wixipl");
@@ -147,7 +147,7 @@ namespace WixToolsetTest.CoreIntegration
147 } 147 }
148 } 148 }
149 149
150 [Fact(Skip = "Test demonstrates failure")] 150 [Fact]
151 public void CanBuildWixiplUsingExtensionLibrary() 151 public void CanBuildWixiplUsingExtensionLibrary()
152 { 152 {
153 var folder = TestData.Get(@"TestData\Wixipl"); 153 var folder = TestData.Get(@"TestData\Wixipl");