-
Notifications
You must be signed in to change notification settings - Fork 470
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
Microsoft.CodeAnalysis.ResxSourceGenerator does not support i18n #7041
Comments
The analyzers should support localization, and we use it for this in some other repositories. Can you post a sample project where you encountered this problem? I found that a reference to Microsoft.CodeAnalysis.Analyzers was causing a conflict in one case, but updating it to use the same version as Microsoft.CodeAnalysis.ResxSourceGenerator fixed it: |
In the sample repository, Microsoft.CodeAnalysis.Analyzers uses version 3.3.4 while Microsoft.CodeAnalysis.ResxSourceGenerator uses 3.11.0-beta1.23525.2. This normally would not be a problem, but there is a bug in Microsoft.CodeAnalysis.Analyzers 3.3.4 that causes it to overwrite the build logic that makes ResxSourceGenerator properly handle culture-specific resources. Updating Microsoft.CodeAnalysis.Analyzers to 3.11.0-beta1.23525.2 will resolve the problem. |
I think I am seeing a similar problem in https://github.com/JustArchiNET/ArchiSteamFarm project I tried the following:
and it still generates
Weirldy it only fails to compile in Visual Studio (version 17.11.2). |
@sharwell can this issue be reopened? |
It also happens in version 17.12.3. |
@DevSplash want to open a new issue since this one wasn't reopened? |
这个问题居然这么久了吗 |
似乎是在.net9版本之后出现的 |
Analyzer source
NuGet Package: Microsoft.CodeAnalysis.ResxSourceGenerator
Version: 3.11.0-beta1.23525.2 (Latest)
Describe the bug
The text was updated successfully, but these errors were encountered: