diff options
author | Rob Mensching <rob@firegiant.com> | 2022-07-26 17:20:39 -0700 |
---|---|---|
committer | Rob Mensching <rob@firegiant.com> | 2022-08-01 20:25:19 -0700 |
commit | a627ca9b720047e633a8fe72003ab9bee31006c5 (patch) | |
tree | 2bc8a924bb4141ab718e74d08f6459a0ffe8d573 /src/tools/publish_t.proj | |
parent | 521eb3c9cf38823a2c4019abb85dc0b3200b92cb (diff) | |
download | wix-a627ca9b720047e633a8fe72003ab9bee31006c5.tar.gz wix-a627ca9b720047e633a8fe72003ab9bee31006c5.tar.bz2 wix-a627ca9b720047e633a8fe72003ab9bee31006c5.zip |
Create WixToolset.Heat.nupkg to distribute heat.exe and Heat targets
Moves Heat functionality to the "tools" layer and packages it all
up in WixToolset.Heat.nupkg for distribution in WiX v4.
Completes 6838
Diffstat (limited to 'src/tools/publish_t.proj')
-rw-r--r-- | src/tools/publish_t.proj | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/tools/publish_t.proj b/src/tools/publish_t.proj new file mode 100644 index 00000000..b23c3d84 --- /dev/null +++ b/src/tools/publish_t.proj | |||
@@ -0,0 +1,36 @@ | |||
1 | <Project Sdk="Microsoft.Build.Traversal"> | ||
2 | <PropertyGroup> | ||
3 | <StagePublishX86>$(BaseIntermediateOutputPath)$(Configuration)\net472\x86\</StagePublishX86> | ||
4 | <StagePublishX64>$(BaseIntermediateOutputPath)$(Configuration)\net472\x64\</StagePublishX64> | ||
5 | <StagePublishDnc>$(BaseIntermediateOutputPath)$(Configuration)\netcoreapp3.1\</StagePublishDnc> | ||
6 | |||
7 | <PublishBuildFolder>$(PublishRoot)WixToolset.Heat\build\</PublishBuildFolder> | ||
8 | <PublishHere>$(PublishRoot)WixToolset.Heat\tools\net472\</PublishHere> | ||
9 | <PublishX86>$(PublishRoot)WixToolset.Heat\tools\net472\x86\</PublishX86> | ||
10 | <PublishX64>$(PublishRoot)WixToolset.Heat\tools\net472\x64\</PublishX64> | ||
11 | <PublishDnc>$(PublishRoot)WixToolset.Heat\tools\netcoreapp3.1\</PublishDnc> | ||
12 | </PropertyGroup> | ||
13 | |||
14 | <ItemGroup> | ||
15 | <ProjectReference Include="WixToolset.HeatTasks\WixToolset.HeatTasks.csproj" Properties="TargetFramework=net472;PublishDir=$(StagePublishX86)WixToolset.HeatTasks" Targets="Publish" /> | ||
16 | <ProjectReference Include="WixToolset.HeatTasks\WixToolset.HeatTasks.csproj" Properties="TargetFramework=netcoreapp3.1;UseAppHost=false;PublishDir=$(StagePublishDnc)WixToolset.HeatTasks" Targets="Publish" /> | ||
17 | |||
18 | <!-- heat.exe doesn't need to filter any files so publish it straight into its final location --> | ||
19 | <ProjectReference Include="heat\heat.csproj" Properties="TargetFramework=net472;RuntimeIdentifier=win-x86;PublishDir=$(PublishX86)" Targets="Publish" /> | ||
20 | <ProjectReference Include="heat\heat.csproj" Properties="TargetFramework=net472;RuntimeIdentifier=win-x64;PublishDir=$(PublishX64)" Targets="Publish" /> | ||
21 | <ProjectReference Include="heat\heat.csproj" Properties="TargetFramework=netcoreapp3.1;UseAppHost=false;PublishDir=$(PublishDnc)" Targets="Publish" /> | ||
22 | </ItemGroup> | ||
23 | |||
24 | <Target Name="CopyToFinalPublishFolder" AfterTargets="Build"> | ||
25 | <ItemGroup> | ||
26 | <From Include="WixToolset.Heat\WixToolset.Heat.targets" To="$(PublishBuildFolder)" /> | ||
27 | <From Include="$(StagePublishX86)\WixToolset.HeatTasks\*.*" Exclude="$(StagePublishx86)\WixToolset.HeatTasks\Microsoft.Build.*.dll" To="$(PublishHere)" /> | ||
28 | <From Include="$(StagePublishDnc)\WixToolset.HeatTasks\*.*" Exclude="$(StagePublishDnc)\WixToolset.HeatTasks\Microsoft.Build.*.dll" To="$(PublishDnc)" /> | ||
29 | </ItemGroup> | ||
30 | |||
31 | <Copy SourceFiles="@(From)" | ||
32 | DestinationFiles="%(To)%(RecursiveDir)%(Filename)%(Extension)" | ||
33 | SkipUnchangedFiles="true" | ||
34 | UseHardlinksIfPossible="true" /> | ||
35 | </Target> | ||
36 | </Project> | ||