fluentassertions/fluentassertions.mvc

New version for MVC5

jrnail23 opened this issue · 2 comments

Just a humble request for a new MVC5 version.

Does the following binding redirect work for you (see issue #16), or do you think we need an MVC 5 build?

<dependentAssembly>
  <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
  <bindingRedirect oldVersion="1.0.0.0-5.0.0.0" newVersion="5.0.0.0" />
</dependentAssembly>

I've been wrestling with this all day -- when I go to add a binding redirect, the command blows up:

Add-BindingRedirect : An item with the same key has already been added.
At line:1 char:1
+ Add-BindingRedirect
+ ~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Add-BindingRedirect], ArgumentException
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.AddBindingRedirectCommand

I think my issue is the fact that my project is .Net v4.5.1, and I'm using FluentAssertions 2.2.0, which actually has a net45 assembly (so that's the one that's getting referenced). So it needs to redirect for FluentAssertions.Mvc for both FluentAssertions, and Mvc5, and it doesn't look like NuGet really wants to do that (possibly a bug in NuGet).

In any case, a new version that targets both FluentAssertions 2.2.0 (including a v4.5 build) and MVC5 wouldn't hurt my cause. ;-)