Update reference paths for all projects in a solution at once

后端 未结 3 1850
情书的邮戳
情书的邮戳 2021-01-11 14:53

I need to add a reference path to all projects (over 35 projects) in a solution. Doing this manually would be time consuming.

Is there a way to update/add/remove ref

相关标签:
3条回答
  • 2021-01-11 15:23

    You could always open the csproj files in a text editor an perform a find/replace. Notepad++ has a handy replace in files feature.

    0 讨论(0)
  • 2021-01-11 15:34

    Using Visual Studio PowerCommands you can copy and paste references, so it won't be as tedious, at least. It makes many other things less tedious as well.

    0 讨论(0)
  • 2021-01-11 15:34

    If your reference is one the NuGet packages, you can easily use the NuGet package manager for the solution and select the installed package that you want to remove, check desired projects, then uninstall them.

    for installation: first, select the desired package, check target projects, then click install.

    its work for me as I have a solution with 35 projects.

    0 讨论(0)
提交回复
热议问题