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
bindingRedirect in Asp.net vNext
Asked Answered
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 –
Ogdoad
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).
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.
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 16 –
Standley
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.