Search code examples
asp.netasp.net-mvcvisual-studio-2010asp.net-mvc-3asp.net-mvc-routing

RouteDebug from NuGet does not have a strong name


Today I had a problem with some routing in my ASP.NET MVC 3 application (with Visual Studio 2010).

So I thought I install the ASP.NET RouteDebugger and fix my route problem.

After I get the package through NuGet my project doesn't build anymore:

referenced assembly ' RouteDebug' does not have a strong name

I could download the source of the RouteDebugger and build (and strongly sign) it myself, but that's not the purpose of NuGet isnt' it ;)

Anyone else had this problem and maybe fixed it?


Solution

  • Well, the problem is not really related to NuGet. You cannot reference unsigned assembly from a signed assembly. And because the RouteDebug.dll as contained in the NuGet package is not strongly signed you won't be able to use it if your application is strongly signed. So you basically have two possibilities to choose from:

    1. Download the source code of RouteDebug and compile it yourself by signing it with a strong key
    2. Remove the strong key signature from your hosting application.