简体   繁体   中英

How to include a project in a build that is not a dependency in Visual Studio c#

I have two projects in my solution, A and B. A is the start-up project. B references A.

After making changes to both A and B when I start the solution A gets built, but not B. This makes sense since A does not reference B and A is the start-up project.

I would like both to build every time I start the solution. Currently I get round this problem by manually building B before running the solution.

How can this be achieved?

I think you can configure which projects can be built by changing the configuration available under the solution properties. Select "Solution" node and on right click, go to properties and try this. See if this works. 在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM