.config files after upgrading

Posts   
 
    
morten71
User
Posts: 80
Joined: 13-Jan-2009
# Posted on: 02-Sep-2020 12:08:44   

I just upgraded from 5.6.3 to 5.7.1 via nuget in a visual studio 2019 asp.net mvc solution with several projects.

The app.config files are getting updated differently.

In one project the app.config is upgraded to this: <bindingRedirect oldVersion="0.0.0.0-5.7.0.0" newVersion="5.7.0.0" />

In the other projects the app.config/web.config files are upgraded to this: <bindingRedirect oldVersion="0.0.0.0-5.6.0.0" newVersion="5.6.0.0" />

See screenshot.

Can I/should I manually upgrade the bindingRedirect node in the .config files to <bindingRedirect oldVersion="0.0.0.0-5.7.0.0" newVersion="5.7.0.0" />

Thanks in advance.

/Morten

Attachments
Filename File size Added on Approval
2020-09-02_11-20-24.jpg 465,648 02-Sep-2020 12:09.05 Approved
Otis avatar
Otis
LLBLGen Pro Team
Posts: 39749
Joined: 17-Aug-2003
# Posted on: 02-Sep-2020 16:08:46   

The binding redirects are added by nuget / vs, not our code, so we don't have any influence over that. In practice you really don't need them, as you use the same version everywhere, right?

The 5.6.0.0 one that's still there might indicate vs got it wrong and didn't upgrade a particular project properly. It might help to e.g. reload the solution (close vs and reload), as that's the only way I sometimes can resolve package version mismatches. (with various nuget packages not related to ours)

Frans Bouma | Lead developer LLBLGen Pro
morten71
User
Posts: 80
Joined: 13-Jan-2009
# Posted on: 02-Sep-2020 21:10:34   

Hmm. I see. All projects are upgraded to 5.7.1 only changes to the entries in the .config files do not reflect the version correctly. I guess VS didn't upgrade correctly last time around.

I will try a manual edit.

Thanks for your reply

Otis wrote:

The binding redirects are added by nuget / vs, not our code, so we don't have any influence over that. In practice you really don't need them, as you use the same version everywhere, right?

The 5.6.0.0 one that's still there might indicate vs got it wrong and didn't upgrade a particular project properly. It might help to e.g. reload the solution (close vs and reload), as that's the only way I sometimes can resolve package version mismatches. (with various nuget packages not related to ours)