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
When MSBuildDetector parse version numbers as decimal numbers (doubles), it doesn't specify the invariant culture. Any user with a culture setting that doesn't use a decimal dot* will result in an error.
*) For instance, Swedish and German cultures use decimal comma (14,1 instead of 14.1).
Expected behavior
MSBuildDetector should be able to parse version numbers independent of a user's current culture setting.
Steps to Reproduce
Steps to reproduce the behavior:
Configure a user culture with a decimal comma, e.g., Set-Culture -CultureInfo 'sv-SE' in PowerShell.
Run unit tests for MSBuildDetector.
Many tests fail.
Screenshots
Desktop (please complete the following information)
OS: Windows
Version/Distro: 10 22H2
User culture: Swedish (sv-SE, LCID = 1053)
Additional context
I ran into this problem while trying out Porting Assistant for .NET, that simply crashed and was unusable.
I forked this repo and improved the version parsing. I will create and link a pull request after this issue has been submitted.
The text was updated successfully, but these errors were encountered:
We received your feedback. Thanks for providing your feedback about Porting Assistant for .NET. We will be reviewing your recommendation and contact you if we need further information.
Describe the bug
When
MSBuildDetector
parse version numbers as decimal numbers (doubles), it doesn't specify the invariant culture. Any user with a culture setting that doesn't use a decimal dot* will result in an error.*) For instance, Swedish and German cultures use decimal comma (
14,1
instead of14.1
).Expected behavior
MSBuildDetector
should be able to parse version numbers independent of a user's current culture setting.Steps to Reproduce
Steps to reproduce the behavior:
Set-Culture -CultureInfo 'sv-SE'
in PowerShell.MSBuildDetector
.Screenshots
Desktop (please complete the following information)
sv-SE
, LCID = 1053)Additional context
I ran into this problem while trying out Porting Assistant for .NET, that simply crashed and was unusable.
I forked this repo and improved the version parsing. I will create and link a pull request after this issue has been submitted.
The text was updated successfully, but these errors were encountered: