diff options
Diffstat (limited to '')
| -rw-r--r-- | src/wix/WixToolset.Core/CompilerErrors.cs | 2 | ||||
| -rw-r--r-- | src/wix/WixToolset.Core/Compiler_Tag.cs | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/wix/WixToolset.Core/CompilerErrors.cs b/src/wix/WixToolset.Core/CompilerErrors.cs index 1afdfe45..492732f7 100644 --- a/src/wix/WixToolset.Core/CompilerErrors.cs +++ b/src/wix/WixToolset.Core/CompilerErrors.cs | |||
| @@ -21,7 +21,7 @@ namespace WixToolset.Core | |||
| 21 | return Message(sourceLineNumbers, Ids.IllegalBundleVariableName, "The {0}/@{1} attribute's value, '{2}', is not a legal bundle variable name. Identifiers may contain ASCII characters A-Z, a-z, digits, or underscores (_). Every identifier must begin with either a letter or an underscore.", elementName, attributeName, value); | 21 | return Message(sourceLineNumbers, Ids.IllegalBundleVariableName, "The {0}/@{1} attribute's value, '{2}', is not a legal bundle variable name. Identifiers may contain ASCII characters A-Z, a-z, digits, or underscores (_). Every identifier must begin with either a letter or an underscore.", elementName, attributeName, value); |
| 22 | } | 22 | } |
| 23 | 23 | ||
| 24 | public static Message IllegalName(SourceLineNumber sourceLineNumbers, string parentElement, string name) | 24 | public static Message IllegalTagName(SourceLineNumber sourceLineNumbers, string parentElement, string name) |
| 25 | { | 25 | { |
| 26 | 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); | 26 | 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); |
| 27 | } | 27 | } |
diff --git a/src/wix/WixToolset.Core/Compiler_Tag.cs b/src/wix/WixToolset.Core/Compiler_Tag.cs index dfb14c5d..991c87fd 100644 --- a/src/wix/WixToolset.Core/Compiler_Tag.cs +++ b/src/wix/WixToolset.Core/Compiler_Tag.cs | |||
| @@ -68,7 +68,7 @@ namespace WixToolset.Core | |||
| 68 | 68 | ||
| 69 | if (!String.IsNullOrEmpty(name) && !this.Core.IsValidLongFilename(name)) | 69 | if (!String.IsNullOrEmpty(name) && !this.Core.IsValidLongFilename(name)) |
| 70 | { | 70 | { |
| 71 | this.Core.Write(CompilerErrors.IllegalName(sourceLineNumbers, node.Name.LocalName, name)); | 71 | this.Core.Write(CompilerErrors.IllegalTagName(sourceLineNumbers, node.Name.LocalName, name)); |
| 72 | } | 72 | } |
| 73 | 73 | ||
| 74 | if (String.IsNullOrEmpty(regid)) | 74 | if (String.IsNullOrEmpty(regid)) |
| @@ -178,7 +178,7 @@ namespace WixToolset.Core | |||
| 178 | 178 | ||
| 179 | if (!String.IsNullOrEmpty(name) && !this.Core.IsValidLongFilename(name)) | 179 | if (!String.IsNullOrEmpty(name) && !this.Core.IsValidLongFilename(name)) |
| 180 | { | 180 | { |
| 181 | this.Core.Write(CompilerErrors.IllegalName(sourceLineNumbers, node.Name.LocalName, name)); | 181 | this.Core.Write(CompilerErrors.IllegalTagName(sourceLineNumbers, node.Name.LocalName, name)); |
| 182 | } | 182 | } |
| 183 | 183 | ||
| 184 | if (String.IsNullOrEmpty(regid)) | 184 | if (String.IsNullOrEmpty(regid)) |
