Sergey Metlov
Sergey Metlov

Reputation: 26291

Make Visual Studio not to compile any projects

Is it possible to tell VS not to recompile some projects every time and use already compiled dll-s instead?

Upvotes: 1

Views: 728

Answers (3)

Peter Macej
Peter Macej

Reputation: 5577

You can exclude any project from building in Configuration manager. Just unselect desired projects in Build column. You still will be able to debug those projects.

Upvotes: 4

Ken D
Ken D

Reputation: 5968

As I understood your question, you have a solution with multiple projects and you seem to have dependency of some of them on some other.

VS will always compile all the "loaded" projects. But when you add a reference to a project, add it directly to a (preferred) DLL assembly file, and not to one of the projects. This way the other project will be compiled but you are referencing the same DLL assembly over and over. Since if you reference the project, the output of the project is always what you reference actually.

Upvotes: 1

Oded
Oded

Reputation: 498992

Instead of project references, you can add the compiled DLLs as references.

Any such referenced project will not rebuild if not changed.

However, since the references will now be to DLLs, you need some strategy to keep them synchronized and up to date with your code.

Upvotes: 1

Related Questions