示例#1
0
        internal static BuildMessage CreateMessage(BuildMessageSeverity severity, string resourceName, params object[] args)
        {
            string str;
            string str2;

            return(new BuildMessage(severity, Microsoft.Build.Shared.ResourceUtilities.FormatResourceString(out str, out str2, resourceName, args), str2, str));
        }
示例#2
0
        internal static BuildMessage CreateMessage(BuildMessageSeverity severity, string resourceName, params object[] args)
        {
            string helpCode;
            string helpKeyword;
            string message = ResourceUtilities.FormatResourceString(out helpCode, out helpKeyword, resourceName, args);

            return new BuildMessage(severity, message, helpKeyword, helpCode);
        }
示例#3
0
        internal static BuildMessage CreateMessage(BuildMessageSeverity severity, string resourceName, params object[] args)
        {
            string helpCode;
            string helpKeyword;
            string message = ResourceUtilities.FormatResourceString(out helpCode, out helpKeyword, resourceName, args);

            return(new BuildMessage(severity, message, helpKeyword, helpCode));
        }
        protected virtual void Build_Message(string msg, string source = "", BuildMessageSeverity severity = BuildMessageSeverity.Information)
        {
            if (build_message_redirection != null)
                build_message_redirection(msg, source, severity);
            else
            {
                Editor.WrapAsyncAction(delegate
                {
                    Debug.WriteLine(String.Format("[{0}] {1} -- {2}", severity, msg, source));

                    BuildOutput.Add(new BuildMessage() { Message = msg, Source = source, Severity = severity, Order = BuildOutput.Count });
                });
            }
        }
 private BuildMessage(BuildMessageSeverity severity, string message, string helpKeyword, string helpCode)
 {
     this.severity = severity;
     this.message = message;
     this.helpKeyword = helpKeyword;
     this.helpCode = helpCode;
     if (!string.IsNullOrEmpty(this.helpCode))
     {
         Match match = msbuildMessageCodePattern.Match(this.helpCode);
         if (match.Success)
         {
             this.helpId = int.Parse(match.Value, CultureInfo.InvariantCulture);
         }
     }
 }
示例#6
0
 private BuildMessage(BuildMessageSeverity severity, string message, string helpKeyword, string helpCode)
 {
     Severity    = severity;
     Message     = message;
     HelpKeyword = helpKeyword;
     HelpCode    = helpCode;
     if (!String.IsNullOrEmpty(HelpCode))
     {
         Match match = s_msbuildMessageCodePattern.Match(HelpCode);
         if (match.Success)
         {
             HelpId = int.Parse(match.Value, CultureInfo.InvariantCulture);
         }
     }
 }
 internal static BuildMessage CreateMessage(BuildMessageSeverity severity, string resourceName, params object[] args)
 {
     string str;
     string str2;
     return new BuildMessage(severity, Microsoft.Build.Shared.ResourceUtilities.FormatResourceString(out str, out str2, resourceName, args), str2, str);
 }
 internal void InternalBuild_Message(string msg, string source = "", BuildMessageSeverity severity = BuildMessageSeverity.Information)
 {
     Build_Message(msg, source, severity);
 }