diff options
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> | ||