It seems that system culture affects the usings ordering. I use cs-CZ culture on my PC, but our CI has en-US. This creates different lists in different environments.
For example this:
using Microsoft.ApplicationInsights.Channel;
using Microsoft.ApplicationInsights.DataContracts;
using Microsoft.ApplicationInsights.Extensibility;
gets sorted like this in Czech:
using Microsoft.ApplicationInsights.DataContracts;
using Microsoft.ApplicationInsights.Extensibility;
using Microsoft.ApplicationInsights.Channel;
This is because in Czech the ch is a "single letter" which is part of our alphabet and is placed between h and i.
When ordering the usings it should probably just always use something like Ordinal (https://learn.microsoft.com/en-us/dotnet/standard/base-types/best-practices-strings#recommendations-for-string-usage).
This started happening after upgrading from version 0.25.0 to 0.26.3 as part of our .net 8 upgrade.
It seems that system culture affects the usings ordering. I use
cs-CZculture on my PC, but our CI hasen-US. This creates different lists in different environments.For example this:
gets sorted like this in Czech:
This is because in Czech the
chis a "single letter" which is part of our alphabet and is placed betweenhandi.When ordering the usings it should probably just always use something like
Ordinal(https://learn.microsoft.com/en-us/dotnet/standard/base-types/best-practices-strings#recommendations-for-string-usage).This started happening after upgrading from version
0.25.0to0.26.3as part of our .net 8 upgrade.