diff options
| author | Rob Mensching <rob@firegiant.com> | 2021-02-26 11:24:10 -0800 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2021-02-27 07:47:08 -0800 |
| commit | 5fd1b7ff82f17d55c8357fe76898a1bdc5953476 (patch) | |
| tree | 5ec191ebf43009daf9bde6d0c26879b181b9a71b /src/WixToolset.Core/CompilerErrors.cs | |
| parent | 760fb810ba5ecc3c6ce752a9bfa3755f7b7c0f6a (diff) | |
| download | wix-5fd1b7ff82f17d55c8357fe76898a1bdc5953476.tar.gz wix-5fd1b7ff82f17d55c8357fe76898a1bdc5953476.tar.bz2 wix-5fd1b7ff82f17d55c8357fe76898a1bdc5953476.zip | |
Absorb Dependency.wixext into Core
Partly resolves wixtoolset/issues#5949
Diffstat (limited to 'src/WixToolset.Core/CompilerErrors.cs')
| -rw-r--r-- | src/WixToolset.Core/CompilerErrors.cs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/WixToolset.Core/CompilerErrors.cs b/src/WixToolset.Core/CompilerErrors.cs index da64c376..9b3d85b9 100644 --- a/src/WixToolset.Core/CompilerErrors.cs +++ b/src/WixToolset.Core/CompilerErrors.cs | |||
| @@ -6,6 +6,16 @@ namespace WixToolset.Core | |||
| 6 | 6 | ||
| 7 | internal static class CompilerErrors | 7 | internal static class CompilerErrors |
| 8 | { | 8 | { |
| 9 | public static Message IllegalCharactersInProvider(SourceLineNumber sourceLineNumbers, string attributeName, char illegalChar, string illegalChars) | ||
| 10 | { | ||
| 11 | return Message(sourceLineNumbers, Ids.IllegalCharactersInProvider, "The provider key authored into the {0} attribute contains an illegal character, '{1}'. Please author the provider key without any of the following characters: {2}", attributeName, illegalChar, illegalChars); | ||
| 12 | } | ||
| 13 | |||
| 14 | public static Message ReservedValue(SourceLineNumber sourceLineNumbers, string elementName, string attributeName, string attributeValue) | ||
| 15 | { | ||
| 16 | return Message(sourceLineNumbers, Ids.ReservedValue, "The {0}/@{1} attribute value '{2}' is reserved and cannot be used here. Please choose a different value.", elementName, attributeName, attributeValue); | ||
| 17 | } | ||
| 18 | |||
| 9 | public static Message IllegalName(SourceLineNumber sourceLineNumbers, string parentElement, string name) | 19 | public static Message IllegalName(SourceLineNumber sourceLineNumbers, string parentElement, string name) |
| 10 | { | 20 | { |
| 11 | return Message(sourceLineNumbers, Ids.IllegalName, "The Tag/@Name attribute value, '{1}', contains invalid filename identifiers. The Tag/@Name may have defaulted from the {0}/@Name attrbute. If so, use the Tag/@Name attribute to provide a valid filename. Any character except for the follow may be used: \\ ? | > < : / * \".", parentElement, name); | 21 | return Message(sourceLineNumbers, Ids.IllegalName, "The Tag/@Name attribute value, '{1}', contains invalid filename identifiers. The Tag/@Name may have defaulted from the {0}/@Name attrbute. If so, use the Tag/@Name attribute to provide a valid filename. Any character except for the follow may be used: \\ ? | > < : / * \".", parentElement, name); |
| @@ -23,6 +33,9 @@ namespace WixToolset.Core | |||
| 23 | 33 | ||
| 24 | public enum Ids | 34 | public enum Ids |
| 25 | { | 35 | { |
| 36 | IllegalCharactersInProvider = 5400, | ||
| 37 | ReservedValue = 5401, | ||
| 38 | |||
| 26 | IllegalName = 6601, | 39 | IllegalName = 6601, |
| 27 | ExampleRegid = 6602, | 40 | ExampleRegid = 6602, |
| 28 | } | 41 | } |
