8
votes

How can I achieve a binding redirect in asp.net vnext? Before I would have configured the bindingRedirect using xml in the web.config file, but I can find how to to this in the Project.json

https://github.com/aspnet/Home/wiki/Project.json-file

2
I too am seeing this problem, but with Autofac Assuming assembly reference 'Autofac, Version=3.4.0.0, Culture=neutral, PublicKeyToken=17863af14b0044da' used by 'Autofac.Extras.Attributed' matches identity 'Autofac, Version=3.5.0.0, Culture=neutral, PublicKeyToken=17863af14b0044da' of 'Autofac', you may need to supply runtime policy - Tom McKearney

2 Answers

1
votes

Binding redirects are not needed in ASP.NET 5. The loader in ASP.NET 5 will automatically load the correct DLL based on project references and the available NuGet and project references.

Or, if you have a case that doesn't work, please provide more details.

1
votes

According to David Fowler from the ASPNET team, binding redirects are gone and not coming back. I created a GitHub issue and he thinks this needs to be done at the Roslyn level (basically, don't output this warning anymore).

https://github.com/aspnet/Home/issues/407