Skip to content
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

ResxSourceGenerator seems not recognice locale code no-NO in Visual Studio 2022 #7523

Open
chr233 opened this issue Jan 8, 2025 · 0 comments

Comments

@chr233
Copy link

chr233 commented Jan 8, 2025

Analyzer

Analyzer source

SDK: Built-in CA analyzers in .NET 9 SDK or later

Version: SDK 9.0.101

OR

NuGet Package: Microsoft.CodeAnalysis.NetAnalyzers

Version: 9.0.0

Describe the bug

repo: https://github.com/JustArchiNET/ArchiSteamFarm.git

Localization/Strings.resx has many language version, include no-NO (Norway)

When using Microsoft.CodeAnalysis.ResxSourceGenerator to generate Strings.Desiger.cs, the source generator generated Strings.Desiger.cs and Strings.no-NO.Designer.cs, and cause errors.

Image

Image

Seems no-NO is not recognized as a locale code in Visual Studio.

But if compile via dotnet publish or using Rider, it seems work.

Image

Steps To Reproduce

clone repo: https://github.com/JustArchiNET/ArchiSteamFarm.git

open via Visual Studio 2022

complie the sulotion

Expected behavior

threat no-NO as a locale code

Actual behavior

threat no-NO as a resource file name

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant