What do you do about references when unloading a project in Visual Studio?

前端 未结 4 1242
伪装坚强ぢ
伪装坚强ぢ 2020-12-18 03:39

When you unload a project in Visual Studio, any referencing projects get warning triangles on their reference to the unloaded project. I\'ve written myself a macro to do cle

4条回答
  •  甜味超标
    2020-12-18 04:00

    What are the advantages of having projects in the same solution if you use file references?

    If your app.exe uses utils.dll and you change the code for utils.dll, then if it's in the same solution VS will notice the dependency and recompile both. If it's not in the solution you'll have to jump out, recompile utils.dll seperately, then jump back in and recompile app.exe.

    This becomes either more or less important depending on how many other dll's your exe is referencing, and how often they change (in team environments shared dll's change often in my experience).
    There is also the side effect that if you have 100 projects in VS it will take a long time to process them all just to figure out if they need recompiling or not.

提交回复
热议问题