aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSean Hall <r.sean.hall@gmail.com>2020-05-28 23:00:05 +1000
committerSean Hall <r.sean.hall@gmail.com>2020-05-28 23:10:12 +1000
commitef0dbdc18c4335fef395fb954845031ea90503be (patch)
tree1d9bec91f1fbef5b24cdfdb45a05ef2ee5e6caee /src
parent551f2a43de0465202e3a3aca24379481cc35733e (diff)
downloadwix-ef0dbdc18c4335fef395fb954845031ea90503be.tar.gz
wix-ef0dbdc18c4335fef395fb954845031ea90503be.tar.bz2
wix-ef0dbdc18c4335fef395fb954845031ea90503be.zip
Move the targets files into the top-level tools folder.
Diffstat (limited to 'src')
-rw-r--r--src/ThmViewerPackage/ThmViewerPackage.wixproj3
-rw-r--r--src/WixToolset.BuildTasks/WixToolset.BuildTasks.csproj9
-rw-r--r--src/WixToolset.BuildTasks/redirects/wix.ca.targets10
-rw-r--r--src/WixToolset.BuildTasks/redirects/wix.targets10
-rw-r--r--src/WixToolset.MSBuild/WixToolset.MSBuild.nuspec4
-rw-r--r--src/WixToolset.MSBuild/WixToolset.MSBuild.props3
-rw-r--r--src/WixToolset.MSBuild/wix.ca.targets (renamed from src/WixToolset.BuildTasks/wix.ca.targets)0
-rw-r--r--src/WixToolset.MSBuild/wix.harvest.targets (renamed from src/WixToolset.BuildTasks/wix.harvest.targets)6
-rw-r--r--src/WixToolset.MSBuild/wix.signing.targets (renamed from src/WixToolset.BuildTasks/wix.signing.targets)0
-rw-r--r--src/WixToolset.MSBuild/wix.targets (renamed from src/WixToolset.BuildTasks/wix.targets)11
-rw-r--r--src/test/WixToolsetTest.BuildTasks/MsbuildFixture.cs12
-rw-r--r--src/test/WixToolsetTest.BuildTasks/MsbuildHeatFixture.cs5
-rw-r--r--src/test/WixToolsetTest.BuildTasks/WixToolsetTest.BuildTasks.csproj6
13 files changed, 32 insertions, 47 deletions
diff --git a/src/ThmViewerPackage/ThmViewerPackage.wixproj b/src/ThmViewerPackage/ThmViewerPackage.wixproj
index a0351aca..07014065 100644
--- a/src/ThmViewerPackage/ThmViewerPackage.wixproj
+++ b/src/ThmViewerPackage/ThmViewerPackage.wixproj
@@ -6,6 +6,7 @@
6 <ProjectGuid>59c4b122-5167-445b-8fc4-09dcd4eced89</ProjectGuid> 6 <ProjectGuid>59c4b122-5167-445b-8fc4-09dcd4eced89</ProjectGuid>
7 <OutputName>thmviewer</OutputName> 7 <OutputName>thmviewer</OutputName>
8 <OutputType>Package</OutputType> 8 <OutputType>Package</OutputType>
9 <WixBinDir>$(OutputPath)\net461\win-x86\</WixBinDir>
9 </PropertyGroup> 10 </PropertyGroup>
10 11
11 <ItemGroup> 12 <ItemGroup>
@@ -23,7 +24,7 @@
23 </ProjectReference> 24 </ProjectReference>
24 </ItemGroup> 25 </ItemGroup>
25 26
26 <Import Project="$(OutputPath)\net461\win-x86\wix.targets" /> 27 <Import Project="..\WixToolset.MSBuild\wix.targets" />
27 28
28 <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild"> 29 <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
29 <PropertyGroup> 30 <PropertyGroup>
diff --git a/src/WixToolset.BuildTasks/WixToolset.BuildTasks.csproj b/src/WixToolset.BuildTasks/WixToolset.BuildTasks.csproj
index 8724f2fc..a8363e7b 100644
--- a/src/WixToolset.BuildTasks/WixToolset.BuildTasks.csproj
+++ b/src/WixToolset.BuildTasks/WixToolset.BuildTasks.csproj
@@ -17,15 +17,6 @@
17 </PropertyGroup> 17 </PropertyGroup>
18 18
19 <ItemGroup> 19 <ItemGroup>
20 <Content Include="redirects\wix.targets" CopyToOutputDirectory="PreserveNewest" />
21 <Content Include="redirects\wix.ca.targets" CopyToOutputDirectory="PreserveNewest" />
22 <Content Include="wix.targets" CopyToOutputDirectory="PreserveNewest" />
23 <Content Include="wix.ca.targets" CopyToOutputDirectory="PreserveNewest" />
24 <Content Include="wix.harvest.targets" CopyToOutputDirectory="PreserveNewest" />
25 <Content Include="wix.signing.targets" CopyToOutputDirectory="PreserveNewest" />
26 </ItemGroup>
27
28 <ItemGroup>
29 <ProjectReference Include="..\WixToolset.Tools.Core\WixToolset.Tools.Core.csproj" /> 20 <ProjectReference Include="..\WixToolset.Tools.Core\WixToolset.Tools.Core.csproj" />
30 </ItemGroup> 21 </ItemGroup>
31 22
diff --git a/src/WixToolset.BuildTasks/redirects/wix.ca.targets b/src/WixToolset.BuildTasks/redirects/wix.ca.targets
deleted file mode 100644
index ecb6e09f..00000000
--- a/src/WixToolset.BuildTasks/redirects/wix.ca.targets
+++ /dev/null
@@ -1,10 +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 xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
5 <PropertyGroup>
6 <WixInstallFolder>$([MSBuild]::GetRegistryValueFromView('HKEY_LOCAL_MACHINE\SOFTWARE\WiX Toolset\v4', 'InstallFolder', null, RegistryView.Registry32))</WixInstallFolder>
7 </PropertyGroup>
8
9 <Import Project="$(WixInstallFolder)sdk\wix.ca.targets" />
10</Project>
diff --git a/src/WixToolset.BuildTasks/redirects/wix.targets b/src/WixToolset.BuildTasks/redirects/wix.targets
deleted file mode 100644
index ba354b65..00000000
--- a/src/WixToolset.BuildTasks/redirects/wix.targets
+++ /dev/null
@@ -1,10 +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 xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
5 <PropertyGroup>
6 <WixInstallFolder>$([MSBuild]::GetRegistryValueFromView('HKEY_LOCAL_MACHINE\SOFTWARE\WiX Toolset\v4', 'InstallFolder', null, RegistryView.Registry32))</WixInstallFolder>
7 </PropertyGroup>
8
9 <Import Project="$(WixInstallFolder)bin\wix.targets" />
10</Project>
diff --git a/src/WixToolset.MSBuild/WixToolset.MSBuild.nuspec b/src/WixToolset.MSBuild/WixToolset.MSBuild.nuspec
index c9e5cdf2..00cf440b 100644
--- a/src/WixToolset.MSBuild/WixToolset.MSBuild.nuspec
+++ b/src/WixToolset.MSBuild/WixToolset.MSBuild.nuspec
@@ -12,6 +12,10 @@
12 12
13 <files> 13 <files>
14 <file src="$projectFolder$$id$.props" target="build" /> 14 <file src="$projectFolder$$id$.props" target="build" />
15 <file src="$projectFolder$wix.ca.targets" target="tools" />
16 <file src="$projectFolder$wix.harvest.targets" target="tools" />
17 <file src="$projectFolder$wix.signing.targets" target="tools" />
18 <file src="$projectFolder$wix.targets" target="tools" />
15 <file src="net461\*" target="tools\net461" /> 19 <file src="net461\*" target="tools\net461" />
16 <file src="netcoreapp2.1\*" target="tools\netcoreapp2.1" /> 20 <file src="netcoreapp2.1\*" target="tools\netcoreapp2.1" />
17 </files> 21 </files>
diff --git a/src/WixToolset.MSBuild/WixToolset.MSBuild.props b/src/WixToolset.MSBuild/WixToolset.MSBuild.props
index b1d207f4..b453361b 100644
--- a/src/WixToolset.MSBuild/WixToolset.MSBuild.props
+++ b/src/WixToolset.MSBuild/WixToolset.MSBuild.props
@@ -3,7 +3,6 @@
3 3
4<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0"> 4<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
5 <PropertyGroup> 5 <PropertyGroup>
6 <WixTargetsPath Condition=" '$(WixTargetsPath)' == '' and '$(MSBuildRuntimeType)' == 'Core' ">$([System.IO.Path]::GetFullPath('$(MSBuildThisFileDirectory)..\tools\netcoreapp2.1\wix.targets'))</WixTargetsPath> 6 <WixTargetsPath Condition=" '$(WixTargetsPath)' == '' ">$([System.IO.Path]::GetFullPath('$(MSBuildThisFileDirectory)..\tools\wix.targets'))</WixTargetsPath>
7 <WixTargetsPath Condition=" '$(WixTargetsPath)' == '' ">$([System.IO.Path]::GetFullPath('$(MSBuildThisFileDirectory)..\tools\net461\wix.targets'))</WixTargetsPath>
8 </PropertyGroup> 7 </PropertyGroup>
9</Project> 8</Project>
diff --git a/src/WixToolset.BuildTasks/wix.ca.targets b/src/WixToolset.MSBuild/wix.ca.targets
index 4578c2d8..4578c2d8 100644
--- a/src/WixToolset.BuildTasks/wix.ca.targets
+++ b/src/WixToolset.MSBuild/wix.ca.targets
diff --git a/src/WixToolset.BuildTasks/wix.harvest.targets b/src/WixToolset.MSBuild/wix.harvest.targets
index 5dd2f729..e4d866ea 100644
--- a/src/WixToolset.BuildTasks/wix.harvest.targets
+++ b/src/WixToolset.MSBuild/wix.harvest.targets
@@ -4,12 +4,6 @@
4 4
5<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> 5<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
6 6
7 <!-- These properties can be overridden to support non-default installations. -->
8 <PropertyGroup>
9 <WixTargetsPath Condition=" '$(WixTargetsPath)' == '' ">$(MSBuildThisFileFullPath)</WixTargetsPath>
10 <WixTasksPath Condition=" '$(WixTasksPath)' == '' ">$(WixTargetsPath)WixToolset.BuildTasks.dll</WixTasksPath>
11 </PropertyGroup>
12
13 <!-- These tasks are extensions for harvesting WiX source code from other sources. --> 7 <!-- These tasks are extensions for harvesting WiX source code from other sources. -->
14 <UsingTask TaskName="HeatFile" AssemblyFile="$(WixTasksPath)" /> 8 <UsingTask TaskName="HeatFile" AssemblyFile="$(WixTasksPath)" />
15 <UsingTask TaskName="HeatDirectory" AssemblyFile="$(WixTasksPath)" /> 9 <UsingTask TaskName="HeatDirectory" AssemblyFile="$(WixTasksPath)" />
diff --git a/src/WixToolset.BuildTasks/wix.signing.targets b/src/WixToolset.MSBuild/wix.signing.targets
index 7c25175f..7c25175f 100644
--- a/src/WixToolset.BuildTasks/wix.signing.targets
+++ b/src/WixToolset.MSBuild/wix.signing.targets
diff --git a/src/WixToolset.BuildTasks/wix.targets b/src/WixToolset.MSBuild/wix.targets
index b8d6bb34..b35d18c7 100644
--- a/src/WixToolset.BuildTasks/wix.targets
+++ b/src/WixToolset.MSBuild/wix.targets
@@ -19,12 +19,11 @@
19 19
20 <!-- These properties can be overridden to support non-default installations. --> 20 <!-- These properties can be overridden to support non-default installations. -->
21 <PropertyGroup> 21 <PropertyGroup>
22 <WixBinDir Condition=" '$(WixBinDir)' == ''">$(MSBuildThisFileDirectory)</WixBinDir> 22 <WixBinDir Condition=" '$(WixBinDir)' == '' and '$(MSBuildRuntimeType)' == 'Core' ">$(MSBuildThisFileDirectory)netcoreapp2.1\</WixBinDir>
23 <WixBinDir Condition=" '$(WixBinDir)' == '' ">$(MSBuildThisFileDirectory)net461\</WixBinDir>
23 <WixTasksPath Condition=" '$(WixTasksPath)' == '' ">$(WixBinDir)WixToolset.BuildTasks.dll</WixTasksPath> 24 <WixTasksPath Condition=" '$(WixTasksPath)' == '' ">$(WixBinDir)WixToolset.BuildTasks.dll</WixTasksPath>
24 <WixHarvestTargetsPath Condition=" '$(WixHarvestTargetsPath)' == '' ">$(WixBinDir)wix.harvest.targets</WixHarvestTargetsPath> 25 <WixHarvestTargetsPath Condition=" '$(WixHarvestTargetsPath)' == '' ">$(MSBuildThisFileDirectory)wix.harvest.targets</WixHarvestTargetsPath>
25 <WixSigningTargetsPath Condition=" '$(WixSigningTargetsPath)' == '' ">$(WixBinDir)wix.signing.targets</WixSigningTargetsPath> 26 <WixSigningTargetsPath Condition=" '$(WixSigningTargetsPath)' == '' ">$(MSBuildThisFileDirectory)wix.signing.targets</WixSigningTargetsPath>
26 <LuxTargetsPath Condition=" '$(LuxTargetsPath)' == '' ">$(WixBinDir)lux.targets</LuxTargetsPath>
27 <LuxTasksPath Condition=" '$(LuxTasksPath)' == '' ">$(WixBinDir)LuxTasks.dll</LuxTasksPath>
28 </PropertyGroup> 27 </PropertyGroup>
29 28
30 <!-- This makes the project files a dependency of all targets so that things rebuild if they change --> 29 <!-- This makes the project files a dependency of all targets so that things rebuild if they change -->
@@ -32,7 +31,6 @@
32 <MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects> 31 <MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
33 <MSBuildAllProjects Condition="Exists('$(WixHarvestTargetsPath)')">$(MSBuildAllProjects);$(WixHarvestTargetsPath)</MSBuildAllProjects> 32 <MSBuildAllProjects Condition="Exists('$(WixHarvestTargetsPath)')">$(MSBuildAllProjects);$(WixHarvestTargetsPath)</MSBuildAllProjects>
34 <MSBuildAllProjects Condition="Exists('$(WixSigningTargetsPath)')">$(MSBuildAllProjects);$(WixSigningTargetsPath)</MSBuildAllProjects> 33 <MSBuildAllProjects Condition="Exists('$(WixSigningTargetsPath)')">$(MSBuildAllProjects);$(WixSigningTargetsPath)</MSBuildAllProjects>
35 <MSBuildAllProjects Condition="Exists('$(LuxTargetsPath)')">$(MSBuildAllProjects);$(LuxTargetsPath)</MSBuildAllProjects>
36 <MSBuildAllProjects Condition="Exists('$(CustomBeforeWixTargets)')">$(MSBuildAllProjects);$(CustomBeforeWixTargets)</MSBuildAllProjects> 34 <MSBuildAllProjects Condition="Exists('$(CustomBeforeWixTargets)')">$(MSBuildAllProjects);$(CustomBeforeWixTargets)</MSBuildAllProjects>
37 <MSBuildAllProjects Condition="Exists('$(CustomAfterWixTargets)')">$(MSBuildAllProjects);$(CustomAfterWixTargets)</MSBuildAllProjects> 35 <MSBuildAllProjects Condition="Exists('$(CustomAfterWixTargets)')">$(MSBuildAllProjects);$(CustomAfterWixTargets)</MSBuildAllProjects>
38 </PropertyGroup> 36 </PropertyGroup>
@@ -1055,7 +1053,6 @@
1055 1053
1056 <Import Project="$(WixHarvestTargetsPath)" Condition=" '$(WixHarvestTargetsPath)' != '' and Exists('$(WixHarvestTargetsPath)')" /> 1054 <Import Project="$(WixHarvestTargetsPath)" Condition=" '$(WixHarvestTargetsPath)' != '' and Exists('$(WixHarvestTargetsPath)')" />
1057 <Import Project="$(WixSigningTargetsPath)" Condition=" '$(WixSigningTargetsPath)' != '' and Exists('$(WixSigningTargetsPath)')" /> 1055 <Import Project="$(WixSigningTargetsPath)" Condition=" '$(WixSigningTargetsPath)' != '' and Exists('$(WixSigningTargetsPath)')" />
1058 <Import Project="$(LuxTargetsPath)" Condition=" '$(LuxTargetsPath)' != '' and Exists('$(LuxTargetsPath)')" />
1059 1056
1060 <!-- Extension point: Define CustomAfterWixTargets to a .targets file that you want to include after this file. --> 1057 <!-- Extension point: Define CustomAfterWixTargets to a .targets file that you want to include after this file. -->
1061 <Import Project="$(CustomAfterWixTargets)" Condition=" '$(CustomAfterWixTargets)' != '' and Exists('$(CustomAfterWixTargets)')" /> 1058 <Import Project="$(CustomAfterWixTargets)" Condition=" '$(CustomAfterWixTargets)' != '' and Exists('$(CustomAfterWixTargets)')" />
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