Questions tagged [msbuild-api]
4 questions
4
votes
1 answer
Skip/Exclude project types from MSBUILD when using the API
I am using the MSBUILD API to build solutions using a service.
eg
var pc = new ProjectCollection();
var buildProperties = new Dictionary
{
{"Configuration", "Release"},
{"Platform", "Any CPU"},
{"OutputPath",…

Doug
- 6,460
- 5
- 59
- 83
3
votes
1 answer
Loading a .NET project with items included as wildcards
I've worked out that in my C#/F# code I can load information about any .NET project using
collection.LoadProject(path_to_my_proj_file)
where collection is of type ProjectCollection. I can then get the access to all the properties and items defined…

LA.27
- 1,888
- 19
- 35
0
votes
1 answer
What API to get or evaluate the global variables defined in MSBuild.exe.config?
I'm writing an application to evaluate (but not build) *.csproj and other project files.
The application emulates what MSBuild does. It uses the (documented) public APIs exposed by the Microsoft.Build.dll instances, which are installed in Visual…

ChrisW
- 54,973
- 13
- 116
- 224
0
votes
1 answer
Active username differences while using the MSBuild API for VC++?
I have begun working directly with the MSBuild API in order to extend our build process and increase the flexibility.
I have successfully automated the entire process of building our project, but not without a few "gotchas". Due to the extreme lack…

Localghost
- 714
- 3
- 7