Navigation Menu

Skip to content

icnocop/RemoveReference.Fody

Repository files navigation

This is an add-in for Fody

Icon

Facilitates removing references in a compiled assembly during a build.

Before (decompiled view of assembly references)

Image

After (decompiled view of assembly references)

Image

Quick Start

  1. Install the RemoveReference.Fody NuGet package for the project that builds your assembly

  2. 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")]    
    
  3. Rebuild your project and enjoy!

Nuget

Nuget package http://nuget.org/packages/RemoveReference.Fody

To Install from the Nuget Package Manager Console

PM> Install-Package RemoveReference.Fody

Credits

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!

Introduction to Fody

Icon

Red delete link icon designed by Icons8 and VisualPharm

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published