Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Microsoft.DiaSymReader.Native.amd64.dll version downgraded in 7.0.12 service pack #93458

Closed
czdietrich opened this issue Oct 13, 2023 · 3 comments

Comments

@czdietrich
Copy link

czdietrich commented Oct 13, 2023

Description

The version of Microsoft.DiaSymReader.Native.amd64.dll is smaller in .NET Core runtime in 7.0.12 than it was in 7.0.11. This is a problem for self-contained applications that use Microsoft installer framework (WiX) to build their installers, since this will lead to the issue that this DLL will be missing after updating from an existing installation with the previous DLL version.

Reproduction Steps

Just compare the DLL versions of Microsoft.DiaSymReader.Native.amd64.dll for .NET 7.0.11 (14.29.30152.0) and 7.0.12 (14.29.30150.0).

Expected behavior

The version of the DLL should be at least 14.29.30152.0, which is the version being used in .NET 7.0.11.

Actual behavior

The version of the DLL is 14.29.30150.0, which is smaller than 14.29.30152.0, the version being used in .NET 7.0.11.

Regression?

I would say yes.

Known Workarounds

In WiX one can define a companion DLL for another DLL which makes the installer to not make a version check. See comment.

But it is unclear whether this DLL has an obvious companion to use here.

Configuration

.NET 7.0.12. But the issue also exists in .NET 6.0.23 and probably other .NET versions too.

Other information

Further technical details

It is important that the file version of a DLL does not downgrade for a newer installer compared to the currently installed DLLs.
More info about this can be found here:
https://stackoverflow.com/questions/47157021/downgraded-ms-dll-disappears-on-upgrade-windows-installer
https://docs.microsoft.com/de-de/archive/blogs/astebner/why-windows-installer-removes-files-during-a-major-upgrade-if-they-go-backwards-in-version-numbers
https://docs.microsoft.com/en-us/windows/win32/msi/both-files-have-a-version

See also:
#82518
#62218

@ghost ghost added the untriaged New issue has not been triaged by the area owner label Oct 13, 2023
@cz-dev-ge
Copy link

As mentioned in #93570 using the companion approach would mean to force installation of the older DLL with known security issues. I am afraid that's out of discussion.

@rbhanda
Copy link
Contributor

rbhanda commented Oct 25, 2023

Hello,
We have released an update to .NET 6.0 and .NET 7.0 to resolve this issue.

@NikolaMilosavljevic
Copy link
Member

@czdietrich the issue seems to be resolved with updated release, mentioned above.

@ghost ghost removed the untriaged New issue has not been triaged by the area owner label Nov 28, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Dec 29, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants