KBEC-00128 - MSBuild postp Matcher

Description

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")},
  },
);

Have more questions?

0 Comments

Please sign in to leave a comment.