main
cs 24 lines 1.17 KB
Raw
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 internal static Message LongPatchBaselineIdTrimmed(SourceLineNumber sourceLineNumbers, string baseTransformName, string trimmedTransformName)
10 {
11 return Message(sourceLineNumbers, Ids.LongPatchBaselineIdTrimmed, "The PatchBaseline/@Id='{0}' is too long. It is recommended to use short identifiers like 'RTM' and 'SP1'. The identifier has been trimmed to '{1}' so the patch can be created.", baseTransformName, trimmedTransformName);
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 LongPatchBaselineIdTrimmed = 7100,
22 } // last available is 7499. 7500 is WindowsInstallerBackendErrors.
23 }
24 }