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
{{ message }}
Repository navigation
[BUG] Version downgrade in .NET 6 for Microsoft.VisualBasic.Core.dll leads to broken Microsoft Installers #62218
From .NET 5 to .NET 6 the version schema of Microsoft.VisualBasic.Core.dll has changed and is now lower than before. When an application is compiled as self-contained and bundled into an MSI file, upgrading from a previous (e.g. .NET 5) version will lead to an issue in the Microsoft Installer installation process.
To Reproduce
Create a new application (e.g. dotnet new console -f net5.0)
Create global.json (e.g. dotnet new globaljson --sdk-version 5.0.100)
Publish the app as self-contained application (e.g. dotnet publish -c Release --self-contained true -r win-x64)
Bundle the application as MSI file (e.g. use WiX toolset or skip this step for now)
Repeat steps 1 to 4 for .NET 6.0 (-f net6.0 and --sdk-version 6.0.100)
In case you created MSI files:
Install the MSI from the first run and then upgrade the installation using the MSI from the second run.
Inspect the installation directory: Microsoft.VisualBasic.Core.dll is missing.
If you repeat this but you do a fresh installation of the second run, Microsoft.VisualBasic.Core.dll would be correctly placed in the installation folder.
In the end this means upgrading or fresh installing will lead to different results.
In case you did not build MSI files:
Inspect Publish-folder of both dotnet publish-runs. You will see that Microsoft.VisualBasic.Core.dll has a higher file version number for .NET 5 build than for the .NET 6 build.
@jaredpar Who can look into the versioning of Microsoft.VisualBasic.Core.dll? It looks like it switched to be runtime versioned from some prior versioning mechanism.
Activity
marcpopMSFT commentedon Nov 29, 2021
@jaredpar Who can look into the versioning of Microsoft.VisualBasic.Core.dll? It looks like it switched to be runtime versioned from some prior versioning mechanism.
jaredpar commentedon Nov 30, 2021
@ericstj ?
ericstj commentedon Nov 30, 2021
Let's move to dotnet/runtime. This appears to have regressed here: a505c46#diff-804ceb4a1df769aca14d1bd4043455cc1cce391376dcb02798cbf716cc6150eeL4
This should be fixed, including in servicing.
ericstj commentedon Nov 30, 2021
We need to restore the MajorVersion property. That's no longer being set, causing the assembly to get default file version.
safern commentedon Nov 30, 2021
I'll tackle this one for the next servicing release.
czdietrich commentedon Dec 9, 2021
Any news on this? Is it still on track for the next servicing release? This is kind of a blocker for us.
Thanks, Michael.
safern commentedon Dec 9, 2021
Hello, @czdietrich, yes it will be fixed as part of the next servicing release.
ViktorHofer commentedon May 6, 2022
This got fixed with #62908.