diff options
| author | Rob Mensching <rob@firegiant.com> | 2021-02-25 09:58:20 -0800 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2021-02-27 07:47:08 -0800 |
| commit | 760fb810ba5ecc3c6ce752a9bfa3755f7b7c0f6a (patch) | |
| tree | 3ad06ffe520f31142e23ce9e752473110d232ec5 /src/WixToolset.Core/CompilerErrors.cs | |
| parent | 4536440f8d76346bcd120fe9e1410e428f855ee9 (diff) | |
| download | wix-760fb810ba5ecc3c6ce752a9bfa3755f7b7c0f6a.tar.gz wix-760fb810ba5ecc3c6ce752a9bfa3755f7b7c0f6a.tar.bz2 wix-760fb810ba5ecc3c6ce752a9bfa3755f7b7c0f6a.zip | |
Absorb Tag.wixext into Core as SoftwareTag element
Resolves wixtoolset/issues#5949
Diffstat (limited to 'src/WixToolset.Core/CompilerErrors.cs')
| -rw-r--r-- | src/WixToolset.Core/CompilerErrors.cs | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/WixToolset.Core/CompilerErrors.cs b/src/WixToolset.Core/CompilerErrors.cs new file mode 100644 index 00000000..da64c376 --- /dev/null +++ b/src/WixToolset.Core/CompilerErrors.cs | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. | ||
| 2 | |||
| 3 | namespace WixToolset.Core | ||
| 4 | { | ||
| 5 | using WixToolset.Data; | ||
| 6 | |||
| 7 | internal static class CompilerErrors | ||
| 8 | { | ||
| 9 | public static Message IllegalName(SourceLineNumber sourceLineNumbers, string parentElement, string name) | ||
| 10 | { | ||
| 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); | ||
| 12 | } | ||
| 13 | |||
| 14 | public static Message ExampleRegid(SourceLineNumber sourceLineNumbers, string regid) | ||
| 15 | { | ||
| 16 | return Message(sourceLineNumbers, Ids.ExampleRegid, "Regid '{0}' is a placeholder that must be replaced with an appropriate value for your installation. Use the simplified URI for your organization or project.", regid); | ||
| 17 | } | ||
| 18 | |||
| 19 | private static Message Message(SourceLineNumber sourceLineNumber, Ids id, string format, params object[] args) | ||
| 20 | { | ||
| 21 | return new Message(sourceLineNumber, MessageLevel.Error, (int)id, format, args); | ||
| 22 | } | ||
| 23 | |||
| 24 | public enum Ids | ||
| 25 | { | ||
| 26 | IllegalName = 6601, | ||
| 27 | ExampleRegid = 6602, | ||
| 28 | } | ||
| 29 | } | ||
| 30 | } | ||
