diff options
author | Bob Arnson <bob@firegiant.com> | 2021-03-15 20:41:08 -0400 |
---|---|---|
committer | Bob Arnson <bob@firegiant.com> | 2021-03-15 20:43:24 -0400 |
commit | 8bb7f447b3a44c6f7dfeb3a413c402903f72386f (patch) | |
tree | a4555072053ed2d57c950b9bb2b6ff4ed653f386 /src | |
parent | db5c1dd657a495d9ff33b42b4f1d6c8f53c0fc00 (diff) | |
download | wix-8bb7f447b3a44c6f7dfeb3a413c402903f72386f.tar.gz wix-8bb7f447b3a44c6f7dfeb3a413c402903f72386f.tar.bz2 wix-8bb7f447b3a44c6f7dfeb3a413c402903f72386f.zip |
Demote CollidingModularizationTypes from error to warning
Diffstat (limited to 'src')
-rw-r--r-- | src/WixToolset.Data/ErrorMessages.cs | 5 | ||||
-rw-r--r-- | src/WixToolset.Data/WarningMessages.cs | 6 |
2 files changed, 6 insertions, 5 deletions
diff --git a/src/WixToolset.Data/ErrorMessages.cs b/src/WixToolset.Data/ErrorMessages.cs index 34192da4..ffd975e3 100644 --- a/src/WixToolset.Data/ErrorMessages.cs +++ b/src/WixToolset.Data/ErrorMessages.cs | |||
@@ -168,11 +168,6 @@ namespace WixToolset.Data | |||
168 | return Message(null, Ids.CircularSearchReference, "A circular reference of search ordering constraints was detected: {0}. Search ordering references must form a directed acyclic graph.", chain); | 168 | return Message(null, Ids.CircularSearchReference, "A circular reference of search ordering constraints was detected: {0}. Search ordering references must form a directed acyclic graph.", chain); |
169 | } | 169 | } |
170 | 170 | ||
171 | public static Message CollidingModularizationTypes(string tableName, string columnName, string foreignTableName, int foreignColumnNumber, string modularizationType, string foreignModularizationType) | ||
172 | { | ||
173 | return Message(null, Ids.CollidingModularizationTypes, "The definition for the '{0}' table's '{1}' column is a foreign key relationship to the '{2}' table's column number {3}. The modularization types of the two column definitions differ: table '{0}' uses type {4} and table '{2}' uses type {5}. Change one of the modularization types so that they match.", tableName, columnName, foreignTableName, foreignColumnNumber, modularizationType, foreignModularizationType); | ||
174 | } | ||
175 | |||
176 | public static Message ComponentExpectedFeature(SourceLineNumber sourceLineNumbers, string component, string type, string target) | 171 | public static Message ComponentExpectedFeature(SourceLineNumber sourceLineNumbers, string component, string type, string target) |
177 | { | 172 | { |
178 | return Message(sourceLineNumbers, Ids.ComponentExpectedFeature, "The component '{0}' is not assigned to a feature. The component's {1} '{2}' requires it to be assigned to at least one feature.", component, type, target); | 173 | return Message(sourceLineNumbers, Ids.ComponentExpectedFeature, "The component '{0}' is not assigned to a feature. The component's {1} '{2}' requires it to be assigned to at least one feature.", component, type, target); |
diff --git a/src/WixToolset.Data/WarningMessages.cs b/src/WixToolset.Data/WarningMessages.cs index edd06981..4e261f4c 100644 --- a/src/WixToolset.Data/WarningMessages.cs +++ b/src/WixToolset.Data/WarningMessages.cs | |||
@@ -678,6 +678,11 @@ namespace WixToolset.Data | |||
678 | return Message(sourceLineNumbers, Ids.VersionTruncated, "Product version {0} in package '{1}' is not valid per the MSI SDK and cannot be represented in a bundle. It has been truncated to {2}.", originalVersion, package, truncatedVersion); | 678 | return Message(sourceLineNumbers, Ids.VersionTruncated, "Product version {0} in package '{1}' is not valid per the MSI SDK and cannot be represented in a bundle. It has been truncated to {2}.", originalVersion, package, truncatedVersion); |
679 | } | 679 | } |
680 | 680 | ||
681 | public static Message CollidingModularizationTypes(string tableName, string columnName, string foreignTableName, int foreignColumnNumber, string modularizationType, string foreignModularizationType) | ||
682 | { | ||
683 | return Message(null, Ids.CollidingModularizationTypes, "The definition for the '{0}' table's '{1}' column is a foreign key relationship to the '{2}' table's column number {3}. The modularization types of the two column definitions differ: table '{0}' uses type {4} and table '{2}' uses type {5}. Change one of the modularization types so that they match.", tableName, columnName, foreignTableName, foreignColumnNumber, modularizationType, foreignModularizationType); | ||
684 | } | ||
685 | |||
681 | private static Message Message(SourceLineNumber sourceLineNumber, Ids id, string format, params object[] args) | 686 | private static Message Message(SourceLineNumber sourceLineNumber, Ids id, string format, params object[] args) |
682 | { | 687 | { |
683 | return new Message(sourceLineNumber, MessageLevel.Warning, (int)id, format, args); | 688 | return new Message(sourceLineNumber, MessageLevel.Warning, (int)id, format, args); |
@@ -815,6 +820,7 @@ namespace WixToolset.Data | |||
815 | DetectConditionRecommended = 1153, | 820 | DetectConditionRecommended = 1153, |
816 | ExperimentalBundlePlatform = 1154, | 821 | ExperimentalBundlePlatform = 1154, |
817 | DefiningWellKnownDirectoryDeprecated = 1155, | 822 | DefiningWellKnownDirectoryDeprecated = 1155, |
823 | CollidingModularizationTypes = 1156, | ||
818 | } | 824 | } |
819 | } | 825 | } |
820 | } | 826 | } |