aboutsummaryrefslogtreecommitdiff
path: root/src/ext/Msmq/wixext/MsmqWarnings.cs
diff options
context:
space:
mode:
authorRob Mensching <rob@firegiant.com>2021-05-04 22:48:58 -0700
committerRob Mensching <rob@firegiant.com>2021-05-04 22:48:58 -0700
commitd77dca43e87e8711b19910a8fd49138f939bf0a4 (patch)
tree650235e3577bde24518af53e001b7bcbac055da3 /src/ext/Msmq/wixext/MsmqWarnings.cs
parent4426b8745595b6e2c709e08871d04efbf574c1f5 (diff)
downloadwix-d77dca43e87e8711b19910a8fd49138f939bf0a4.tar.gz
wix-d77dca43e87e8711b19910a8fd49138f939bf0a4.tar.bz2
wix-d77dca43e87e8711b19910a8fd49138f939bf0a4.zip
Move Msmq.wixext into ext
Diffstat (limited to 'src/ext/Msmq/wixext/MsmqWarnings.cs')
-rw-r--r--src/ext/Msmq/wixext/MsmqWarnings.cs30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/ext/Msmq/wixext/MsmqWarnings.cs b/src/ext/Msmq/wixext/MsmqWarnings.cs
new file mode 100644
index 00000000..41d160e9
--- /dev/null
+++ b/src/ext/Msmq/wixext/MsmqWarnings.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
3namespace WixToolset.Data
4{
5 using System;
6 using System.Resources;
7
8 public static class MsmqWarnings
9 {
10 public static Message MissingComponents(SourceLineNumber sourceLineNumbers)
11 {
12 return Message(sourceLineNumbers, Ids.MissingComponents, "The MsmqAssembly element has a Type attribute with a value of 'native', but the element does not contain any MsmqComponent elements. All components contained in a native assembly must be listed, or they will not be correctly removed during uninstall.");
13 }
14
15 private static Message Message(SourceLineNumber sourceLineNumber, Ids id, string format, params object[] args)
16 {
17 return new Message(sourceLineNumber, MessageLevel.Warning, (int)id, format, args);
18 }
19
20 private static Message Message(SourceLineNumber sourceLineNumber, Ids id, ResourceManager resourceManager, string resourceName, params object[] args)
21 {
22 return new Message(sourceLineNumber, MessageLevel.Warning, (int)id, resourceManager, resourceName, args);
23 }
24
25 public enum Ids
26 {
27 MissingComponents = 6007,
28 }
29 }
30}