I use the MSBUILD API to create 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 do is pass a list of excluded project types or extensions. To start, I would like to exclude:
- Database Projects
- WinRT Projects
- shared MSBUILD files (without a project type GUID).
Are there any ways to solve this problem by passing some parameters to the MSBUILD manager?
source share