简体   繁体   中英

Avoid building all VB.NET projects in a VisualStudio solution

We create a class library and ship C# and VB.NET examples.

I have a solution of 60 C# projects. If I make an edit to one of them, Visual Studio only builds the changed one.

I have an equivalent solution of 60 VB.NET projects. Visual Studio always builds all 60 projects. Why? Is there a way to force Visual Studio to behave like it does with C# projects?

I should mention that there are no dependencies between the projects.

More information: It's not recompiling, really, it's just checking if they need compilation and that takes a significant amount of time.

Here's the build output:

========== Build: 0 succeeded, 3 failed, 58 up-to-date, 0 skipped ==========

Those 58 checks take about 30 seconds in my solution of VB.NET projects. This same up-to-date check is almost instant in the solution of C# projects.

No edit is necessary. Just switching startup projects is enough.

How this works is very dependent on how the dependencies between the projects are setup. If all of your projects reference the project that's being edited then yes all of the projects will necessarily be rebuilt.

Can you give us some more info on the setup. In particular what dependencies are there between the projects?

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