I am using the MSBUILD API to build solutions using a service.
eg
var pc = new ProjectCollection();
var buildProperties = new Dictionary<string, string>
{
{"Configuration", "Release"},
{"Platform", "Any CPU"},
{"OutputPath", _outputPath}
};
var buildParameters = new BuildParameters(pc);
var buildRequest = new BuildRequestData(_buildFile, buildProperties, null, new[] { "Clean", "Rebuild" }, null);
var buildResult = BuildManager.DefaultBuildManager.Build(buildParameters, buildRequest);
What I want to be able to do, is pass in a list of excluded project types or extensions. To start with I would like to exclude:
- Database projects
- WinRT projects
- generic MSBUILD files (no project type GUID).
Are there any ways to solve this by passing in some parameters to the MSBUILD manager?