The solution to this is actually quite simple and elegant.
- Remove all your binding redirects in Web.config / app.config;
- Go to Package Manager Console;
- Enter the command Add-BindingRedirect (you can also specify a target project using -ProjectName "SpecificProject");
- All necessary binding redirects are generated;
- Run your application and see if it works properly. If not, add any missing binding redirects that the command missed.
From < https://stackoverflow.com/questions/50036791/find-unused-unnecessary-assemblybinding-redirects>
No comments:
Post a Comment