NuGet Uninstall.ps1 – remove a project reference

Question:

So in my Install.ps1 I can add a reference like this:

How do you remove a project reference in PowerShell?

Answer:

There are some casting issues to do this in powershell.

this is the c# to remove a reference.

If you want to use the Solution Factory nuget package you can use the powershell command that solution factory adds.

Here is a link the the solution factory source http://solutionfactory.codeplex.com/SourceControl/network/Forks/erichexter/PowershellRewrite

Update: new url for solution factory:
https://github.com/erichexter/SolutionFactory

Source:

NuGet Uninstall.ps1 – remove a project reference by licensed under CC BY-SA | With most appropriate answer!

Leave a Reply