diff options
Diffstat (limited to '')
-rw-r--r-- | src/tools/WixToolset.Heat/WixToolset.Heat.targets (renamed from src/wix/WixToolset.Sdk/tools/wix.harvest.targets) | 29 |
1 files changed, 17 insertions, 12 deletions
diff --git a/src/wix/WixToolset.Sdk/tools/wix.harvest.targets b/src/tools/WixToolset.Heat/WixToolset.Heat.targets index 23e4a68e..ba854459 100644 --- a/src/wix/WixToolset.Sdk/tools/wix.harvest.targets +++ b/src/tools/WixToolset.Heat/WixToolset.Heat.targets | |||
@@ -5,16 +5,27 @@ | |||
5 | <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | 5 | <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
6 | <!-- These properties can be overridden to support non-default installations. --> | 6 | <!-- These properties can be overridden to support non-default installations. --> |
7 | <PropertyGroup> | 7 | <PropertyGroup> |
8 | <HeatToolDir Condition=" '$(HeatToolDir)' == '' ">$(WixToolDir)</HeatToolDir> | 8 | <WixHeatBinDir Condition=" '$(WixHeatBinDir)' == '' and '$(MSBuildRuntimeType)' == 'Core' ">$(MSBuildThisFileDirectory)..\tools\netcoreapp3.1\</WixHeatBinDir> |
9 | <WixHeatBinDir Condition=" '$(WixHeatBinDir)' == '' ">$(MSBuildThisFileDirectory)..\tools\net472\</WixHeatBinDir> | ||
10 | <WixHeatTasksPath Condition=" '$(WixHeatTasksPath)' == '' ">$(WixHeatBinDir)WixToolset.HeatTasks.dll</WixHeatTasksPath> | ||
11 | |||
12 | <!-- | ||
13 | For backwards compatibility, the MSBuild tasks always default to the x86 heat.exe even though a x64 heat.exe is available. | ||
14 | For "dotnet.exe build" the Heat tasks calculate the command-line to start heat.dll in .NET Core. | ||
15 | --> | ||
16 | <HeatToolDir Condition=" '$(HeatToolDir)' == '' and '$(MSBuildRuntimeType)' != 'Core' ">$(MSBuildThisFileDirectory)..\tools\net472\x86\</HeatToolDir> | ||
17 | |||
18 | <HeatExe Condition=" '$(HeatExe)' == '' ">$(MSBuildThisFileDirectory)..\tools\net472\x86\heat.exe</HeatExe> | ||
19 | <HeatExe64 Condition=" '$(HeatExe64)' == '' ">$(MSBuildThisFileDirectory)..\tools\net472\x64\heat.exe</HeatExe64> | ||
9 | </PropertyGroup> | 20 | </PropertyGroup> |
10 | 21 | ||
11 | <!-- These tasks are extensions for harvesting WiX source code from other sources. --> | 22 | <!-- These tasks are extensions for harvesting WiX source code from other sources. --> |
12 | <UsingTask TaskName="HeatFile" AssemblyFile="$(WixTasksPath)" /> | 23 | <UsingTask TaskName="HeatFile" AssemblyFile="$(WixHeatTasksPath)" /> |
13 | <UsingTask TaskName="HeatDirectory" AssemblyFile="$(WixTasksPath)" /> | 24 | <UsingTask TaskName="HeatDirectory" AssemblyFile="$(WixHeatTasksPath)" /> |
14 | <UsingTask TaskName="HeatProject" AssemblyFile="$(WixTasksPath)" /> | 25 | <UsingTask TaskName="HeatProject" AssemblyFile="$(WixHeatTasksPath)" /> |
15 | 26 | ||
16 | <UsingTask TaskName="RefreshGeneratedFile" AssemblyFile="$(WixTasksPath)"/> | 27 | <UsingTask TaskName="RefreshGeneratedFile" AssemblyFile="$(WixHeatTasksPath)"/> |
17 | <UsingTask TaskName="RefreshBundleGeneratedFile" AssemblyFile="$(WixTasksPath)"/> | 28 | <UsingTask TaskName="RefreshBundleGeneratedFile" AssemblyFile="$(WixHeatTasksPath)"/> |
18 | 29 | ||
19 | <!-- Default Harvester properties--> | 30 | <!-- Default Harvester properties--> |
20 | <PropertyGroup> | 31 | <PropertyGroup> |
@@ -278,8 +289,6 @@ | |||
278 | GenerateWixVariables="$(HarvestProjectsGenerateWixVariables)" | 289 | GenerateWixVariables="$(HarvestProjectsGenerateWixVariables)" |
279 | UseToolsVersion="$(HarvestProjectsUseToolsVersion)" | 290 | UseToolsVersion="$(HarvestProjectsUseToolsVersion)" |
280 | AdditionalOptions="$(HarvestProjectsAdditionalOptions)" | 291 | AdditionalOptions="$(HarvestProjectsAdditionalOptions)" |
281 | RunAsSeparateProcess="$(RunWixToolsOutOfProc)" | ||
282 | ToolExe="$(HeatToolExe)" | ||
283 | ToolPath="$(HeatToolDir)"> | 292 | ToolPath="$(HeatToolDir)"> |
284 | 293 | ||
285 | <Output TaskParameter="OutputFile" ItemName="Compile" /> | 294 | <Output TaskParameter="OutputFile" ItemName="Compile" /> |
@@ -366,8 +375,6 @@ | |||
366 | SuppressRootDirectory="%(HarvestDirectory.SuppressRootDirectory)" | 375 | SuppressRootDirectory="%(HarvestDirectory.SuppressRootDirectory)" |
367 | SuppressRegistry="%(HarvestDirectory.SuppressRegistry)" | 376 | SuppressRegistry="%(HarvestDirectory.SuppressRegistry)" |
368 | AdditionalOptions="$(HarvestDirectoryAdditionalOptions)" | 377 | AdditionalOptions="$(HarvestDirectoryAdditionalOptions)" |
369 | RunAsSeparateProcess="$(RunWixToolsOutOfProc)" | ||
370 | ToolExe="$(HeatToolExe)" | ||
371 | ToolPath="$(HeatToolDir)"> | 378 | ToolPath="$(HeatToolDir)"> |
372 | 379 | ||
373 | <Output TaskParameter="OutputFile" ItemName="Compile" /> | 380 | <Output TaskParameter="OutputFile" ItemName="Compile" /> |
@@ -442,8 +449,6 @@ | |||
442 | SuppressRegistry="%(HarvestFile.SuppressRegistry)" | 449 | SuppressRegistry="%(HarvestFile.SuppressRegistry)" |
443 | SuppressRootDirectory="%(HarvestFile.SuppressRootDirectory)" | 450 | SuppressRootDirectory="%(HarvestFile.SuppressRootDirectory)" |
444 | AdditionalOptions="$(HarvestFileAdditionalOptions)" | 451 | AdditionalOptions="$(HarvestFileAdditionalOptions)" |
445 | RunAsSeparateProcess="$(RunWixToolsOutOfProc)" | ||
446 | ToolExe="$(HeatToolExe)" | ||
447 | ToolPath="$(HeatToolDir)"> | 452 | ToolPath="$(HeatToolDir)"> |
448 | 453 | ||
449 | <Output TaskParameter="OutputFile" ItemName="Compile" /> | 454 | <Output TaskParameter="OutputFile" ItemName="Compile" /> |