diff options
| author | Rob Mensching <rob@firegiant.com> | 2021-04-06 09:34:57 -0700 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2021-04-06 16:10:05 -0700 |
| commit | 86e59fdbc94ae661ca682f04cddb60d7830ae8a8 (patch) | |
| tree | 227b19100f4f116abdd4b4996688a86d58ad3d32 /src/WixToolset.Core/CompilerWarnings.cs | |
| parent | 860f77f7c9d522074dc7e44cfe11281efd20687f (diff) | |
| download | wix-86e59fdbc94ae661ca682f04cddb60d7830ae8a8.tar.gz wix-86e59fdbc94ae661ca682f04cddb60d7830ae8a8.tar.bz2 wix-86e59fdbc94ae661ca682f04cddb60d7830ae8a8.zip | |
Introduce StandardDirectory for referencing standard directories
Completes wixtoolset/issues#6416
Diffstat (limited to 'src/WixToolset.Core/CompilerWarnings.cs')
| -rw-r--r-- | src/WixToolset.Core/CompilerWarnings.cs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/WixToolset.Core/CompilerWarnings.cs b/src/WixToolset.Core/CompilerWarnings.cs index 3b9666dd..eb838ae2 100644 --- a/src/WixToolset.Core/CompilerWarnings.cs +++ b/src/WixToolset.Core/CompilerWarnings.cs | |||
| @@ -6,6 +6,16 @@ namespace WixToolset.Core | |||
| 6 | 6 | ||
| 7 | internal static class CompilerWarnings | 7 | internal static class CompilerWarnings |
| 8 | { | 8 | { |
| 9 | public static Message DirectoryRefStandardDirectoryDeprecated(SourceLineNumber sourceLineNumbers, string directoryId) | ||
| 10 | { | ||
| 11 | return Message(sourceLineNumbers, Ids.DirectoryRefStandardDirectoryDeprecated, "Using DirectoryRef to reference the standard directory '{0}' is deprecated. Use the StandardDirectory element instead.", directoryId); | ||
| 12 | } | ||
| 13 | |||
| 14 | public static Message DefiningStandardDirectoryDeprecated(SourceLineNumber sourceLineNumbers, string directoryId) | ||
| 15 | { | ||
| 16 | return Message(sourceLineNumbers, Ids.DefiningStandardDirectoryDeprecated, "It is no longer necessary to define the standard directory '{0}'. Use the StandardDirectory element instead.", directoryId); | ||
| 17 | } | ||
| 18 | |||
| 9 | public static Message DiscouragedVersionAttribute(SourceLineNumber sourceLineNumbers) | 19 | public static Message DiscouragedVersionAttribute(SourceLineNumber sourceLineNumbers) |
| 10 | { | 20 | { |
| 11 | return Message(sourceLineNumbers, Ids.DiscouragedVersionAttribute, "The Provides/@Version attribute should not be specified in an MSI package. The ProductVersion will be used by default."); | 21 | return Message(sourceLineNumbers, Ids.DiscouragedVersionAttribute, "The Provides/@Version attribute should not be specified in an MSI package. The ProductVersion will be used by default."); |
| @@ -48,6 +58,8 @@ namespace WixToolset.Core | |||
| 48 | PropertyRemoved = 5433, | 58 | PropertyRemoved = 5433, |
| 49 | DiscouragedVersionAttribute = 5434, | 59 | DiscouragedVersionAttribute = 5434, |
| 50 | Win64Component = 5435, | 60 | Win64Component = 5435, |
| 61 | DirectoryRefStandardDirectoryDeprecated = 5436, | ||
| 62 | DefiningStandardDirectoryDeprecated = 5437, | ||
| 51 | } | 63 | } |
| 52 | } | 64 | } |
| 53 | } | 65 | } |
