bindingRedirect in Asp.net vNext
Asked Answered
S

2

8

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

Standley answered 16/1, 2015 at 15:49 Comment(1)
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 policyOgdoad
O
1

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

Ogdoad answered 16/1, 2015 at 15:49 Comment(0)
P
1

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.

Playroom answered 17/1, 2015 at 1:1 Comment(3)
What I am seeing is a compiler warning. Warning CS1701 Assuming assembly reference 'Castle.Windsor, Version=2.5.1.0, Culture=neutral, PublicKeyToken=407dd0808d44fbdc' used by 'CommonServiceLocator.WindsorAdapter' matches identity 'Castle.Windsor, Version=3.3.0.0, Culture=neutral, PublicKeyToken=407dd0808d44fbdc' of 'Castle.Windsor', you may need to supply runtime policy WebApplication2.ASP.NET 5.0 MediatRInstaller.cs 16Standley
Can you update the question showing what you tried and what the errors were?Playroom
I'd also like to know how to get rid of this warning, if possible.Quadragesimal

© 2022 - 2024 — McMap. All rights reserved.