You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have picked a specific .NET SDK version (5.0.102) for our project using "rollForward": "disable" in our global.json so that we can ensure a consistent assembly set when our app is published, either locally or on the Azure DevOps build agents. As Visual Studio upgrades arrive on the desktop, they bring SDK patch version updates, so currently I have 5.0.104 and 5.0.102 has been removed.
If I try to reinstall 5.0.102 via the Windows installer, it fails with "Error 0x80070666: Cannot install a product when a newer version is installed."
I see from discussion here that this behaviour is by design, it's not possible to install a lower patch version from the same band. I have worked around this using the dotnet-install.ps1 script but given that the regular installer forbids this I'm concerned that having this older SDK side-by-side might be somehow problematic. If it isn't, then I suggest to remove this constraint from the installer to enable this use case.