Description

Article ID:360033194011
1 minute readKnowledge base

When using Microsoft Visual Studio, what postp matches should I use?

Solution - MSBuild postp Matcher

 push (@::gMatchers,
  {
   id =>        "msbuild-cs-warning",
   pattern =>          q{warning ([[:alnum:]])+ ?:},
   action =>           q{incValue("warnings");
                                    diagnostic("$1", "warning"); updateSummary();},
  },
  {
   id =>        "msbuild-cs-error",
   pattern =>          q{error ([[:alnum:]])+ ?:},
   action =>           q{incValue("errors");
                                    diagnostic("$1", "error"); updateSummary();},
  },
  {
   id =>        "msbuild-c#-compile",
   pattern =>          q{Csc\.exe},
   action =>           q{incValue("CSharpCompiles"); updateSummary();},
  },
  {
   id =>        "msbuild-vb-compile",
   pattern =>          q{[Vv][Bb][Cc]\.exe},
   action =>           q{incValue("VBCompiles"); updateSummary();},
  },
  {
   id =>        "msbuild-license-compile",
   pattern =>          q{LC\.exe},
   action =>           q{incValue("LicenseCompiles"); updateSummary();},
  },
  {
   id =>        "msbuild-resource-file",
   pattern =>          q{Processing resource file.*\.},
   action =>           q{incValue("resources"); updateSummary();},
  },
  {
   id =>        "msbuild-target",
   pattern =>          q{Target .*:},
   action =>           q{incValue("targets"); updateSummary();},
  },
  {
   id =>        "msbuild-target",
   pattern =>          q{Skipping target.*because.*\.},
   action =>           q{incValue("targets", -1);incValue("targetsSkipped"); updateSummary();},
  },
  {
   id =>        "msbuild-project",
   pattern =>          q{Project .* is building .*:},
   action =>           q{incValue("projects"); updateSummary();},
  },
  {
   id =>        "msbuild-cnf-dotnet",
   pattern =>          q{Could not locate the \.NET Framework SDK\.},
   action =>           q{diagnostic("Could not find .NET","info")},
  },
);
This article is part of our Knowledge Base and is provided for guidance-based purposes only. The solutions or workarounds described here are not officially supported by CloudBees and may not be applicable in all environments. Use at your own discretion, and test changes in a safe environment before applying them to production systems.