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
I've reproduced this in a standalone test project simply by importing the file above and building with msbuild 17.8.3+195e7f5a3 from .net 8.0.2 sdk. The relevant code is:
Describe the bug
I'm attempting a source build of the dotnet sdk, which includes this package. I'm on a arm64-darwin machine, where the current culture is
en-DE
.I've reproduce
I got an error about an invalid version (say
2.21.0.1596368770542477
), which includes the time because of:ApplicationInsights-dotnet/.props/_GlobalStaticVersion.props
Line 34 in bd8b0c2
I've reproduced this in a standalone test project simply by importing the file above and building with msbuild 17.8.3+195e7f5a3 from .net 8.0.2 sdk. The relevant code is:
BuildNumberHours
gets the value (e.g.)1596,3841980177776
, andBuildNumber
gets the value15963841980177776
.If I merge them into one expression like this:
BuildNumber
ends up being01596
, as expected.I'm not sure if this is somehow.
All I can find in the docs (https://learn.microsoft.com/en-us/visualstudio/msbuild/property-functions?view=vs-2022) is
It seems likely that msbuild is using the invariant culture for this, but not for converting property values to strings.
This also fixes it:
but it doesn't work without
MSBUILDENABLEALLPROPERTYFUNCTIONS=1
.The text was updated successfully, but these errors were encountered: