diff options
author | Rob Mensching <rob@firegiant.com> | 2021-04-11 17:30:46 -0700 |
---|---|---|
committer | Rob Mensching <rob@firegiant.com> | 2021-04-11 17:34:20 -0700 |
commit | e7b745b08c51b173c80253432a82583e73c46157 (patch) | |
tree | eea0575d2cac3dae87457d84b66501ebf4a7e7ea /src | |
parent | abfcbadf4e9c47ed813416fa4754e5a0d20958ff (diff) | |
download | wix-e7b745b08c51b173c80253432a82583e73c46157.tar.gz wix-e7b745b08c51b173c80253432a82583e73c46157.tar.bz2 wix-e7b745b08c51b173c80253432a82583e73c46157.zip |
Create backend specific error and warning locations
Diffstat (limited to 'src')
4 files changed, 96 insertions, 0 deletions
diff --git a/src/WixToolset.Core.Burn/BurnBackendErrors.cs b/src/WixToolset.Core.Burn/BurnBackendErrors.cs new file mode 100644 index 00000000..106c3b31 --- /dev/null +++ b/src/WixToolset.Core.Burn/BurnBackendErrors.cs | |||
@@ -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 | } | ||
diff --git a/src/WixToolset.Core.Burn/BurnBackendWarnings.cs b/src/WixToolset.Core.Burn/BurnBackendWarnings.cs new file mode 100644 index 00000000..9b2fa6c9 --- /dev/null +++ b/src/WixToolset.Core.Burn/BurnBackendWarnings.cs | |||
@@ -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 | } | ||
diff --git a/src/WixToolset.Core.WindowsInstaller/WindowsInstallerBackendErrors.cs b/src/WixToolset.Core.WindowsInstaller/WindowsInstallerBackendErrors.cs new file mode 100644 index 00000000..c1232dcc --- /dev/null +++ b/src/WixToolset.Core.WindowsInstaller/WindowsInstallerBackendErrors.cs | |||
@@ -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 | } | ||
diff --git a/src/WixToolset.Core.WindowsInstaller/WindowsInstallerBackendWarnings.cs b/src/WixToolset.Core.WindowsInstaller/WindowsInstallerBackendWarnings.cs new file mode 100644 index 00000000..0eaadbe1 --- /dev/null +++ b/src/WixToolset.Core.WindowsInstaller/WindowsInstallerBackendWarnings.cs | |||
@@ -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 | } | ||