user299709
user299709

Reputation: 5412

C# .net: How to modify a Nuget package's source code installed in my project?

So I have a Nuget package installed on my asp.net project which is outdated and help is nowhere in sight. I need to modify this nuget package's source code in order to manually put in a patch. I also need to set breakpoints and debug however VS 2015 doesn't let me step in to a code any deeper that belongs to a Nuget package.

Where is the nuget package source files on my windows 7 machine? Is there a better way of patching an old nuget package?

Upvotes: 5

Views: 13782

Answers (1)

Matt Ward
Matt Ward

Reputation: 47917

A NuGet package typically contains an assembly so there is no source code included directly in the NuGet package.

The source code for the NuGet package would need to be provided by the package author. Most NuGet packages provide a project url to the source code if the NuGet package is open source.

If there is no project url that points to the source code then you would need to contact the package author.

Upvotes: 10

Related Questions