aboutsummaryrefslogtreecommitdiff
path: root/src/ext/PowerShell/wixext/PSWarnings.cs
diff options
context:
space:
mode:
authorRob Mensching <rob@firegiant.com>2021-05-11 08:07:37 -0700
committerRob Mensching <rob@firegiant.com>2021-05-11 08:07:37 -0700
commit5b63db920c207d7115ff8f9ea19f36944766db7a (patch)
tree6f51a90276c18c36c4027784901b9633c8de2567 /src/ext/PowerShell/wixext/PSWarnings.cs
parent3ae536eb53fe0cc9bbcb1aeb0cd88c89f4f3e2cc (diff)
parent59765d27eb205b7b62a5057cfb631caee97f0af6 (diff)
downloadwix-5b63db920c207d7115ff8f9ea19f36944766db7a.tar.gz
wix-5b63db920c207d7115ff8f9ea19f36944766db7a.tar.bz2
wix-5b63db920c207d7115ff8f9ea19f36944766db7a.zip
Merge PowerShell.wixext
Diffstat (limited to 'src/ext/PowerShell/wixext/PSWarnings.cs')
-rw-r--r--src/ext/PowerShell/wixext/PSWarnings.cs30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/ext/PowerShell/wixext/PSWarnings.cs b/src/ext/PowerShell/wixext/PSWarnings.cs
new file mode 100644
index 00000000..9be14948
--- /dev/null
+++ b/src/ext/PowerShell/wixext/PSWarnings.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.PowerShell
4{
5 using System.Resources;
6 using WixToolset.Data;
7
8 public static class PSWarnings
9 {
10 public static Message DeprecatedAssemblyNameAttribute(SourceLineNumber sourceLineNumbers)
11 {
12 return Message(sourceLineNumbers, Ids.DeprecatedAssemblyNameAttribute, "The SnapIn/@AssemblyName attribute is deprecated. It is assigned automatically.");
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 DeprecatedAssemblyNameAttribute = 5350,
28 }
29 }
30}