Skip to content

How to determine if a Project is enabled for building for a given Configuration? #1026

Answered by matkoch
bhehe asked this question in Q&A
Discussion options

You must be logged in to vote

Build configurations are part of the Solution model. A project loaded through the Microsoft.Build package has no awareness of whether it's enabled for build or not in the solution it's included in.

What you need to do is put Solution.Configurations and Project.Configurations together, but there's no built-in functionality.

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by matkoch
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants