Skip to content

FileVersionInfo.GetVersionInfo reports different versions depending on OS #40895

@Thealexbarney

Description

@Thealexbarney

Description

FileVersionInfo.GetVersionInfo will report different versions on Windows and Unix.

For example, the published NuGet package System.Runtime.CompilerServices.Unsafe v4.7.1 will report 4.700.20.12001 on Windows and 4.0.0.0 on Unix.

One effect of this is breaking deterministic builds when using a NuGet package where it happens.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions