-
Notifications
You must be signed in to change notification settings - Fork 10.3k
ASP.NET Core WebAPI includes InvariantGlobalization setting in .csproj in .NET 8 but is not stated as a change. #52319
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
Comments
For reference: #47066 made that change. |
I see but it still does not say anything about it in the documentation. So i guess i'll have to go report it there |
@patr543a just wait a bit...the issue can be moved to docs also, no need to create there a separate one (at the moment). @eerhardt can you please chime in? |
Since it seams like nothing seams to be happening here i made a documentation issue post. (I know i was told not to) |
This was an intentional change to the web api template. But it wasn't intentional to leave it out of the docs. Thanks for opening the docs issue, @patr543a. |
After more investigation, this setting was only supposed to be enabled when the template was created for Native AOT mode. See #48238. Looks like we missed a few spots in that PR. Re-opening to fix them. |
These entries were missed in dotnet#48238. InvariantGlobalization should only be set when the template is created for native AOT. That is the way it is for the worker and grpc templates already. These templates don't support AOT. Fix dotnet#52319
Re-opening to track backporting to 8.0. |
These entries were missed in dotnet#48238. InvariantGlobalization should only be set when the template is created for native AOT. That is the way it is for the worker and grpc templates already. These templates don't support AOT. Fix dotnet#52319
Looks like this PR hasn't been active for some time and the codebase could have been changed in the meantime. |
@dotnet-policy-service, this isn't a PR. But thanks for the reminder. The PR (#52461) has been merged into release/8.0. Closing. |
Looks like this PR hasn't been active for some time and the codebase could have been changed in the meantime. |
Is there an existing issue for this?
Describe the bug
<InvariantGlobalization>true</InvariantGlobalization>
is included in the .csproj file in ASP.NET Core WebAPI by default in .NET 8 only was never stated as a change.Expected Behavior
<InvariantGlobalization>true</InvariantGlobalization>
should not be in the .csproj by default as is not the case with .NET 7 only .NET 8 and is never ever stated in the changes which gives me the impression this is a bug. This causes issues with Entity Framework Core which i experienced and it took hours before i knew this was the cause because it was never stated as a change at allSteps To Reproduce
<InvariantGlobalization>true</InvariantGlobalization>
will be in itExceptions (if any)
Doesn't really give any exceptions but will cause exceptions like
CultureNotFound
in Entity Framework Core..NET Version
8.0.100
Anything else?
IDE: Version 17.9.0 Preview 1.0
Output of
dotnet --info
The text was updated successfully, but these errors were encountered: