This is an add-in for Fody
Facilitates removing references in a compiled assembly during a build.
-
Install the RemoveReference.Fody NuGet package for the project that builds your assembly
-
Add a RemoveReference attribute in your code for each assembly reference you want to remove from the compiled assembly:
[assembly: RemoveReference("mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e")] [assembly: RemoveReference("System.Core, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e")]
-
Rebuild your project and enjoy!
Nuget package http://nuget.org/packages/RemoveReference.Fody
To Install from the Nuget Package Manager Console
PM> Install-Package RemoveReference.Fody
Inspired by Microsoft Visual Studio and Portable Class Library (PCL) bug and Fody issue #43.
Many thanks to Simon Cropp, Fody, contributors, and the community!
Red delete link icon designed by Icons8 and VisualPharm