aboutsummaryrefslogtreecommitdiff
path: root/src/wixext/DependencyWarnings.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/wixext/DependencyWarnings.cs')
-rw-r--r--src/wixext/DependencyWarnings.cs60
1 files changed, 0 insertions, 60 deletions
diff --git a/src/wixext/DependencyWarnings.cs b/src/wixext/DependencyWarnings.cs
deleted file mode 100644
index 802edc22..00000000
--- a/src/wixext/DependencyWarnings.cs
+++ /dev/null
@@ -1,60 +0,0 @@
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.Dependency
4{
5 using System;
6 using System.Resources;
7 using WixToolset.Data;
8
9 public static class DependencyWarnings
10 {
11 public static Message DiscouragedVersionAttribute(SourceLineNumber sourceLineNumbers)
12 {
13 return Message(sourceLineNumbers, Ids.DiscouragedVersionAttribute, "The Provides/@Version attribute should not be specified in an MSI package. The ProductVersion will be used by default.");
14 }
15
16 public static Message DiscouragedVersionAttribute(SourceLineNumber sourceLineNumbers, string id)
17 {
18 return Message(sourceLineNumbers, Ids.DiscouragedVersionAttribute, "The Provides/@Version attribute should not be specified for MSI package {0}. The ProductVersion will be used by default.", id);
19 }
20
21 public static Message PropertyRemoved(string name)
22 {
23 return Message(null, Ids.PropertyRemoved, "The property {0} was authored in the package with a value and will be removed. The property should not be authored.", name);
24 }
25
26 public static Message ProvidesKeyNotFound(SourceLineNumber sourceLineNumbers, string id)
27 {
28 return Message(sourceLineNumbers, Ids.ProvidesKeyNotFound, "The provider key with identifier {0} was not found in the WixDependencyProvider table. Related registry rows will not be removed from authoring.", id);
29 }
30
31 public static Message RequiresKeyNotFound(SourceLineNumber sourceLineNumbers, string id)
32 {
33 return Message(sourceLineNumbers, Ids.RequiresKeyNotFound, "The dependency key with identifier {0} was not found in the WixDependency table. Related registry rows will not be removed from authoring.", id);
34 }
35
36 public static Message Win64Component(SourceLineNumber sourceLineNumbers, string componentId)
37 {
38 return Message(sourceLineNumbers, Ids.Win64Component, "The Provides element should not be authored in the 64-bit component with identifier {0}. The dependency feature may not work if installing this package on 64-bit Windows operating systems prior to Windows 7 and Windows Server 2008 R2. Set the Component/@Win64 attribute to \"no\" to make sure the dependency feature works correctly on all supported operating systems.", componentId);
39 }
40
41 private static Message Message(SourceLineNumber sourceLineNumber, Ids id, string format, params object[] args)
42 {
43 return new Message(sourceLineNumber, MessageLevel.Warning, (int)id, format, args);
44 }
45
46 private static Message Message(SourceLineNumber sourceLineNumber, Ids id, ResourceManager resourceManager, string resourceName, params object[] args)
47 {
48 return new Message(sourceLineNumber, MessageLevel.Warning, (int)id, resourceManager, resourceName, args);
49 }
50
51 public enum Ids
52 {
53 ProvidesKeyNotFound = 5431,
54 RequiresKeyNotFound = 5432,
55 PropertyRemoved = 5433,
56 DiscouragedVersionAttribute = 5434,
57 Win64Component = 5435,
58 }
59 }
60}