Skip to main content
Source Link
vidstige
  • 13.1k
  • 9
  • 70
  • 115

Remove project reference from command line

Is it possible to remove a project reference from the command line? And if so, how? Imagine I have two projects in a solution: WPF project A, and Class Library B. A has a project reference to B so that it will depend on the output of project B. Now I wan't to remove the project reference from the command line as to be able to automate in our build. Looking as the .csproj file the project reference looks something like this.

<ProjectReference Include="..\B\B.csproj"> <Project>{7B68745C-382E-4272-897D-123A0AD80391}</Project> <Name>B</Name> </ProjectReference>