diff options
author | Rob Mensching <rob@firegiant.com> | 2022-10-01 02:38:00 -0700 |
---|---|---|
committer | Rob Mensching <rob@firegiant.com> | 2022-10-03 12:29:27 -0700 |
commit | 464575def4341d65bc3fa72298798755cdee527e (patch) | |
tree | 815adc229c92756260dcd65782102511359bf50f /src/tools | |
parent | ed6593322d34ff0e655be9347f340d0cc96c0784 (diff) | |
download | wix-464575def4341d65bc3fa72298798755cdee527e.tar.gz wix-464575def4341d65bc3fa72298798755cdee527e.tar.bz2 wix-464575def4341d65bc3fa72298798755cdee527e.zip |
Standardize on .NET 6 as the minimum for .NET Core platform.
Closes 6942
Diffstat (limited to 'src/tools')
-rw-r--r-- | src/tools/WixToolset.Heat/WixToolset.Heat.csproj | 2 | ||||
-rw-r--r-- | src/tools/WixToolset.Heat/WixToolset.Heat.targets | 2 | ||||
-rw-r--r-- | src/tools/WixToolset.HeatTasks/HeatTask.cs | 5 | ||||
-rw-r--r-- | src/tools/WixToolset.HeatTasks/WixToolset.HeatTasks.csproj | 2 | ||||
-rw-r--r-- | src/tools/heat/heat.csproj | 4 | ||||
-rw-r--r-- | src/tools/publish_t.proj | 8 |
6 files changed, 14 insertions, 9 deletions
diff --git a/src/tools/WixToolset.Heat/WixToolset.Heat.csproj b/src/tools/WixToolset.Heat/WixToolset.Heat.csproj index a3e0eb41..2166028a 100644 --- a/src/tools/WixToolset.Heat/WixToolset.Heat.csproj +++ b/src/tools/WixToolset.Heat/WixToolset.Heat.csproj | |||
@@ -3,7 +3,7 @@ | |||
3 | 3 | ||
4 | <Project Sdk="Microsoft.NET.Sdk"> | 4 | <Project Sdk="Microsoft.NET.Sdk"> |
5 | <PropertyGroup> | 5 | <PropertyGroup> |
6 | <TargetFrameworks>netcoreapp3.1</TargetFrameworks> | 6 | <TargetFrameworks>net6.0</TargetFrameworks> |
7 | <Description>WiX Toolset Heat MSBuild integration</Description> | 7 | <Description>WiX Toolset Heat MSBuild integration</Description> |
8 | <PublishDir>$(PublishRoot)WixToolset.Heat\</PublishDir> | 8 | <PublishDir>$(PublishRoot)WixToolset.Heat\</PublishDir> |
9 | <NuspecFile>$(MSBuildThisFileName).nuspec</NuspecFile> | 9 | <NuspecFile>$(MSBuildThisFileName).nuspec</NuspecFile> |
diff --git a/src/tools/WixToolset.Heat/WixToolset.Heat.targets b/src/tools/WixToolset.Heat/WixToolset.Heat.targets index ba854459..25493295 100644 --- a/src/tools/WixToolset.Heat/WixToolset.Heat.targets +++ b/src/tools/WixToolset.Heat/WixToolset.Heat.targets | |||
@@ -5,7 +5,7 @@ | |||
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 | <WixHeatBinDir Condition=" '$(WixHeatBinDir)' == '' and '$(MSBuildRuntimeType)' == 'Core' ">$(MSBuildThisFileDirectory)..\tools\netcoreapp3.1\</WixHeatBinDir> | 8 | <WixHeatBinDir Condition=" '$(WixHeatBinDir)' == '' and '$(MSBuildRuntimeType)' == 'Core' ">$(MSBuildThisFileDirectory)..\tools\net6.0\</WixHeatBinDir> |
9 | <WixHeatBinDir Condition=" '$(WixHeatBinDir)' == '' ">$(MSBuildThisFileDirectory)..\tools\net472\</WixHeatBinDir> | 9 | <WixHeatBinDir Condition=" '$(WixHeatBinDir)' == '' ">$(MSBuildThisFileDirectory)..\tools\net472\</WixHeatBinDir> |
10 | <WixHeatTasksPath Condition=" '$(WixHeatTasksPath)' == '' ">$(WixHeatBinDir)WixToolset.HeatTasks.dll</WixHeatTasksPath> | 10 | <WixHeatTasksPath Condition=" '$(WixHeatTasksPath)' == '' ">$(WixHeatBinDir)WixToolset.HeatTasks.dll</WixHeatTasksPath> |
11 | 11 | ||
diff --git a/src/tools/WixToolset.HeatTasks/HeatTask.cs b/src/tools/WixToolset.HeatTasks/HeatTask.cs index 8942a7e1..6b7b9399 100644 --- a/src/tools/WixToolset.HeatTasks/HeatTask.cs +++ b/src/tools/WixToolset.HeatTasks/HeatTask.cs | |||
@@ -14,7 +14,12 @@ namespace WixToolset.HeatTasks | |||
14 | /// </summary> | 14 | /// </summary> |
15 | public abstract partial class HeatTask : ToolTask | 15 | public abstract partial class HeatTask : ToolTask |
16 | { | 16 | { |
17 | #if NETFRAMEWORK | ||
17 | private static readonly string ThisDllPath = new Uri(typeof(HeatTask).Assembly.CodeBase).AbsolutePath; | 18 | private static readonly string ThisDllPath = new Uri(typeof(HeatTask).Assembly.CodeBase).AbsolutePath; |
19 | #else | ||
20 | private static readonly string ThisDllPath = typeof(HeatTask).Assembly.Location; | ||
21 | #endif | ||
22 | |||
18 | 23 | ||
19 | /// <summary> | 24 | /// <summary> |
20 | /// Gets or sets additional options that are appended the the tool command-line. | 25 | /// Gets or sets additional options that are appended the the tool command-line. |
diff --git a/src/tools/WixToolset.HeatTasks/WixToolset.HeatTasks.csproj b/src/tools/WixToolset.HeatTasks/WixToolset.HeatTasks.csproj index ea52bdfa..ddc75c69 100644 --- a/src/tools/WixToolset.HeatTasks/WixToolset.HeatTasks.csproj +++ b/src/tools/WixToolset.HeatTasks/WixToolset.HeatTasks.csproj | |||
@@ -3,7 +3,7 @@ | |||
3 | 3 | ||
4 | <Project Sdk="Microsoft.NET.Sdk"> | 4 | <Project Sdk="Microsoft.NET.Sdk"> |
5 | <PropertyGroup> | 5 | <PropertyGroup> |
6 | <TargetFrameworks>netcoreapp3.1;net472</TargetFrameworks> | 6 | <TargetFrameworks>net6.0;net472</TargetFrameworks> |
7 | <Title>WiX Toolset Heat MSBuild Tasks</Title> | 7 | <Title>WiX Toolset Heat MSBuild Tasks</Title> |
8 | <DebugType>embedded</DebugType> | 8 | <DebugType>embedded</DebugType> |
9 | <PublishRepositoryUrl>true</PublishRepositoryUrl> | 9 | <PublishRepositoryUrl>true</PublishRepositoryUrl> |
diff --git a/src/tools/heat/heat.csproj b/src/tools/heat/heat.csproj index db4a710b..dfcc9126 100644 --- a/src/tools/heat/heat.csproj +++ b/src/tools/heat/heat.csproj | |||
@@ -3,13 +3,13 @@ | |||
3 | 3 | ||
4 | <Project Sdk="Microsoft.NET.Sdk"> | 4 | <Project Sdk="Microsoft.NET.Sdk"> |
5 | <PropertyGroup> | 5 | <PropertyGroup> |
6 | <TargetFrameworks>netcoreapp3.1;net472</TargetFrameworks> | 6 | <TargetFrameworks>net6.0-windows;net472</TargetFrameworks> |
7 | <OutputType>Exe</OutputType> | 7 | <OutputType>Exe</OutputType> |
8 | <Description>Harvester</Description> | 8 | <Description>Harvester</Description> |
9 | <Title>WiX Toolset Harvester</Title> | 9 | <Title>WiX Toolset Harvester</Title> |
10 | <DebugType>embedded</DebugType> | 10 | <DebugType>embedded</DebugType> |
11 | <PublishRepositoryUrl>true</PublishRepositoryUrl> | 11 | <PublishRepositoryUrl>true</PublishRepositoryUrl> |
12 | <RuntimeIdentifiers Condition=" '$(RuntimeIdentifier)'=='' and '$(TargetFramework)'!='netcoreapp3.1' ">win-x86;win-x64</RuntimeIdentifiers> | 12 | <RuntimeIdentifiers Condition=" '$(RuntimeIdentifier)'=='' and '$(TargetFramework)'!='net6.0' ">win-x86;win-x64</RuntimeIdentifiers> |
13 | <AppConfig>app.config</AppConfig> | 13 | <AppConfig>app.config</AppConfig> |
14 | <ApplicationManifest>heat.exe.manifest</ApplicationManifest> | 14 | <ApplicationManifest>heat.exe.manifest</ApplicationManifest> |
15 | <RollForward>LatestMajor</RollForward> | 15 | <RollForward>LatestMajor</RollForward> |
diff --git a/src/tools/publish_t.proj b/src/tools/publish_t.proj index b23c3d84..cbe67768 100644 --- a/src/tools/publish_t.proj +++ b/src/tools/publish_t.proj | |||
@@ -2,23 +2,23 @@ | |||
2 | <PropertyGroup> | 2 | <PropertyGroup> |
3 | <StagePublishX86>$(BaseIntermediateOutputPath)$(Configuration)\net472\x86\</StagePublishX86> | 3 | <StagePublishX86>$(BaseIntermediateOutputPath)$(Configuration)\net472\x86\</StagePublishX86> |
4 | <StagePublishX64>$(BaseIntermediateOutputPath)$(Configuration)\net472\x64\</StagePublishX64> | 4 | <StagePublishX64>$(BaseIntermediateOutputPath)$(Configuration)\net472\x64\</StagePublishX64> |
5 | <StagePublishDnc>$(BaseIntermediateOutputPath)$(Configuration)\netcoreapp3.1\</StagePublishDnc> | 5 | <StagePublishDnc>$(BaseIntermediateOutputPath)$(Configuration)\net6.0\</StagePublishDnc> |
6 | 6 | ||
7 | <PublishBuildFolder>$(PublishRoot)WixToolset.Heat\build\</PublishBuildFolder> | 7 | <PublishBuildFolder>$(PublishRoot)WixToolset.Heat\build\</PublishBuildFolder> |
8 | <PublishHere>$(PublishRoot)WixToolset.Heat\tools\net472\</PublishHere> | 8 | <PublishHere>$(PublishRoot)WixToolset.Heat\tools\net472\</PublishHere> |
9 | <PublishX86>$(PublishRoot)WixToolset.Heat\tools\net472\x86\</PublishX86> | 9 | <PublishX86>$(PublishRoot)WixToolset.Heat\tools\net472\x86\</PublishX86> |
10 | <PublishX64>$(PublishRoot)WixToolset.Heat\tools\net472\x64\</PublishX64> | 10 | <PublishX64>$(PublishRoot)WixToolset.Heat\tools\net472\x64\</PublishX64> |
11 | <PublishDnc>$(PublishRoot)WixToolset.Heat\tools\netcoreapp3.1\</PublishDnc> | 11 | <PublishDnc>$(PublishRoot)WixToolset.Heat\tools\net6.0\</PublishDnc> |
12 | </PropertyGroup> | 12 | </PropertyGroup> |
13 | 13 | ||
14 | <ItemGroup> | 14 | <ItemGroup> |
15 | <ProjectReference Include="WixToolset.HeatTasks\WixToolset.HeatTasks.csproj" Properties="TargetFramework=net472;PublishDir=$(StagePublishX86)WixToolset.HeatTasks" Targets="Publish" /> | 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" /> | 16 | <ProjectReference Include="WixToolset.HeatTasks\WixToolset.HeatTasks.csproj" Properties="TargetFramework=net6.0;UseAppHost=false;PublishDir=$(StagePublishDnc)WixToolset.HeatTasks" Targets="Publish" /> |
17 | 17 | ||
18 | <!-- heat.exe doesn't need to filter any files so publish it straight into its final location --> | 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" /> | 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" /> | 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" /> | 21 | <ProjectReference Include="heat\heat.csproj" Properties="TargetFramework=net6.0-windows;UseAppHost=false;PublishDir=$(PublishDnc)" Targets="Publish" /> |
22 | </ItemGroup> | 22 | </ItemGroup> |
23 | 23 | ||
24 | <Target Name="CopyToFinalPublishFolder" AfterTargets="Build"> | 24 | <Target Name="CopyToFinalPublishFolder" AfterTargets="Build"> |