Create backend specific error and warning locations
Rob Mensching committed
Apr 11, 2021 at 17:30 UTC
e7b745b08c51b173c80253432a82583e73c46157
4 files changed
+96
src/WixToolset.Core.Burn/BurnBackendErrors.cs
new
+24
@@ -0,0 +1,24 @@
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.Burn
4
+{
5
+ using WixToolset.Data;
6
+
7
+ internal static class BurnBackendErrors
8
+ {
9
+ //public static Message ReplaceThisWithTheFirstError(SourceLineNumber sourceLineNumbers)
10
+ //{
11
+ // return Message(sourceLineNumbers, Ids.ReplaceThisWithTheFirstError, "format string", arg1, arg2);
12
+ //}
13
+
14
+ private static Message Message(SourceLineNumber sourceLineNumber, Ids id, string format, params object[] args)
15
+ {
16
+ return new Message(sourceLineNumber, MessageLevel.Error, (int)id, format, args);
17
+ }
18
+
19
+ public enum Ids
20
+ {
21
+ // ReplaceThisWithTheFirstError = 8000,
22
+ }
23
+ }
24
+}
src/WixToolset.Core.Burn/BurnBackendWarnings.cs
new
+24
@@ -0,0 +1,24 @@
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.Burn
4
+{
5
+ using WixToolset.Data;
6
+
7
+ internal static class BurnBackendWarnings
8
+ {
9
+ //public static Message ReplaceThisWithTheFirstWarning(SourceLineNumber sourceLineNumbers)
10
+ //{
11
+ // return Message(sourceLineNumbers, Ids.ReplaceThisWithTheFirstWarning, "format string", arg1, arg2);
12
+ //}
13
+
14
+ private static Message Message(SourceLineNumber sourceLineNumber, Ids id, string format, params object[] args)
15
+ {
16
+ return new Message(sourceLineNumber, MessageLevel.Warning, (int)id, format, args);
17
+ }
18
+
19
+ public enum Ids
20
+ {
21
+ // ReplaceThisWithTheFirstWarning = 8500,
22
+ }
23
+ }
24
+}
src/WixToolset.Core.WindowsInstaller/WindowsInstallerBackendErrors.cs
new
+24
@@ -0,0 +1,24 @@
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.WindowsInstaller
4
+{
5
+ using WixToolset.Data;
6
+
7
+ internal static class WindowsInstallerBackendErrors
8
+ {
9
+ //public static Message ReplaceThisWithTheFirstError(SourceLineNumber sourceLineNumbers)
10
+ //{
11
+ // return Message(sourceLineNumbers, Ids.ReplaceThisWithTheFirstError, "format string", arg1, arg2);
12
+ //}
13
+
14
+ private static Message Message(SourceLineNumber sourceLineNumber, Ids id, string format, params object[] args)
15
+ {
16
+ return new Message(sourceLineNumber, MessageLevel.Error, (int)id, format, args);
17
+ }
18
+
19
+ public enum Ids
20
+ {
21
+ // ReplaceThisWithTheFirstError = 7000,
22
+ }
23
+ }
24
+}
src/WixToolset.Core.WindowsInstaller/WindowsInstallerBackendWarnings.cs
new
+24
@@ -0,0 +1,24 @@
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.WindowsInstaller
4
+{
5
+ using WixToolset.Data;
6
+
7
+ internal static class WindowsInstallerBackendWarnings
8
+ {
9
+ //public static Message ReplaceThisWithTheFirstWarning(SourceLineNumber sourceLineNumbers)
10
+ //{
11
+ // return Message(sourceLineNumbers, Ids.ReplaceThisWithTheFirstWarning, "format string", arg1, arg2);
12
+ //}
13
+
14
+ private static Message Message(SourceLineNumber sourceLineNumber, Ids id, string format, params object[] args)
15
+ {
16
+ return new Message(sourceLineNumber, MessageLevel.Warning, (int)id, format, args);
17
+ }
18
+
19
+ public enum Ids
20
+ {
21
+ // ReplaceThisWithTheFirstWarning = 7500,
22
+ }
23
+ }
24
+}