Friday 16 August 2024

.net Package upgrade with bindings

 The solution to this is actually quite simple and elegant.

  1. Remove all your binding redirects in Web.config / app.config;
  2. Go to Package Manager Console;
  3. Enter the command Add-BindingRedirect (you can also specify a target project using -ProjectName "SpecificProject");
  4. All necessary binding redirects are generated;
  5. 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