Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to properly remove PropertyChanged.Fody via NuGet

I intended to use Fody.PropertyChanged in one of my projects, and it was properly added via NuGet:

Install-Package PropertyChanged.Fody

I realized, it was in the wrong project, so I used the uninstall command:

Uninstall-Package PropertyChanged.Fody

After that I added it to the proper project.

Now, when I try to build my solution, I get the following error in the initial project that shouldn't have Fody installed:

Fody: You don't seem to have configured any weavers. Try adding a Fody nuget package to your project. Have a look here http://nuget.org/packages?q=fody for the list of available packages.

There is no reference to Fody in the project, I deleted the Fody reference from the packages.config file and there is no XML file.

What else should I do?

like image 833
Nestor Avatar asked Feb 24 '15 10:02

Nestor


2 Answers

You need to also

Uninstall-Package Fody
like image 94
Simon Avatar answered Oct 03 '22 17:10

Simon


Remove The "FodyWeavers.xml" and Open the Project file with NotePad or notePad++ and remove the following lines

<Target Name="EnsureNuGetPackageBuildImports"  BeforeTargets="PrepareForBuild">
<Import Project="..\packages\Fody.1.29.2\build\portable-net+sl+win+wpa+wp\Fody.targets" Condition="Exists('..\packages\Fody.1.29.2\build\portable-net+sl+win+wpa+wp\Fody.targets')" />
like image 22
Muhammad Magdy Avatar answered Oct 03 '22 18:10

Muhammad Magdy