diff options
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 | } | ||