diff options
author | Bob Arnson <bob@firegiant.com> | 2025-01-22 22:45:45 -0500 |
---|---|---|
committer | Bob Arnson <github@bobs.org> | 2025-01-23 08:44:13 -0500 |
commit | 63223d5c023846ab7b4cef222326c913d2e0521f (patch) | |
tree | ed96fabf5095f6892df61c50129a22f44fa9d2f3 /src/tools/heat/Data | |
parent | 7288b0b76f8b902510631fa70ae2b8b962dbf589 (diff) | |
download | wix-63223d5c023846ab7b4cef222326c913d2e0521f.tar.gz wix-63223d5c023846ab7b4cef222326c913d2e0521f.tar.bz2 wix-63223d5c023846ab7b4cef222326c913d2e0521f.zip |
Emit deprecation warning for Heat.
Fixes https://github.com/wixtoolset/issues/issues/8913
Diffstat (limited to 'src/tools/heat/Data')
-rw-r--r-- | src/tools/heat/Data/HarvesterWarnings.cs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/tools/heat/Data/HarvesterWarnings.cs b/src/tools/heat/Data/HarvesterWarnings.cs index 80ee5c31..1bbd5bed 100644 --- a/src/tools/heat/Data/HarvesterWarnings.cs +++ b/src/tools/heat/Data/HarvesterWarnings.cs | |||
@@ -2,13 +2,17 @@ | |||
2 | 2 | ||
3 | namespace WixToolset.Harvesters.Data | 3 | namespace WixToolset.Harvesters.Data |
4 | { | 4 | { |
5 | using System; | ||
6 | using System.Resources; | 5 | using System.Resources; |
7 | using WixToolset.Data; | 6 | using WixToolset.Data; |
8 | 7 | ||
9 | #pragma warning disable 1591 // TODO: add documentation | 8 | #pragma warning disable 1591 // TODO: add documentation |
10 | public static class HarvesterWarnings | 9 | public static class HarvesterWarnings |
11 | { | 10 | { |
11 | public static Message HeatIsDeprecated() | ||
12 | { | ||
13 | return Message(null, Ids.HeatIsDeprecated, "Heat is deprecated and will be removed in WiX v7. Consider alternative solutions, like the Files element."); | ||
14 | } | ||
15 | |||
12 | public static Message AssemblyHarvestFailed(string file, string message) | 16 | public static Message AssemblyHarvestFailed(string file, string message) |
13 | { | 17 | { |
14 | return Message(null, Ids.AssemblyHarvestFailed, "Could not harvest data from a file that was expected to be an assembly: {0}. If this file is not an assembly you can ignore this warning. Otherwise, this error detail may be helpful to diagnose the failure: {1}", file, message); | 18 | return Message(null, Ids.AssemblyHarvestFailed, "Could not harvest data from a file that was expected to be an assembly: {0}. If this file is not an assembly you can ignore this warning. Otherwise, this error detail may be helpful to diagnose the failure: {1}", file, message); |
@@ -66,6 +70,7 @@ namespace WixToolset.Harvesters.Data | |||
66 | 70 | ||
67 | public enum Ids | 71 | public enum Ids |
68 | { | 72 | { |
73 | HeatIsDeprecated = 5149, | ||
69 | SelfRegHarvestFailed = 5150, | 74 | SelfRegHarvestFailed = 5150, |
70 | AssemblyHarvestFailed = 5151, | 75 | AssemblyHarvestFailed = 5151, |
71 | TypeLibLoadFailed = 5152, | 76 | TypeLibLoadFailed = 5152, |