-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
No zh-CN resouces.dll is generated when using dotnet build
command
#5381
Comments
This issue is not reproducible with .NET 5.0 sdk or Visual Studio 2022 Preview 4.0 |
@botcher I was not able to reproduce it in Visual Studio but I was able to reproduce it with dotnet build. |
I am able to reproduce it with 6.0 RTM. zh-CN is only created when the application is built with .NET Framework msbuild through VS. |
This may be related: dotnet/msbuild#3897 @dsplaisted @sfoslund: Should this be moved to the msbuild repo? |
Not sure, @benvillalobos? |
Looks like an msbuild issue. Our AssignCulture task looks to include a hardcoded set of valid cultures in .netframework. Judging by discussion in the linked msbuild issue (3897) it looks like this is blocked by either enabling the hardcoded list in .net core, or updating msbuild to net5.0 and taking advantage of the Culture API. Closing this and linking to dotnet/msbuild#3897 as the canonical issue for this. |
It looks a regression in .NET 6. it works with .NET 5. Do we have a solution? |
dotnet --info
)dotnet --info
Windows version: (
winver
)Windows 11 21H2 Build 22000.194
Does the bug reproduce also in WPF for .NET Framework 4.8?: Not sure
Is this bug related specifically to tooling in Visual Studio (e.g. XAML Designer, Code editing, etc...)? If yes, please file the issue via the instructions here.
No, Visual Studio 2022 17.0.0 preview 4.0 works well
Problem description:
As the attached test project, using
dotnet build
command to build this project.Actual behavior:
No zh-CN resources.dll is generated.
dotnet build
dir bin\Debug\net6.0-windows\
Expected behavior:
WpfAppTest.resources.dll exists in zh-CN dir
Minimal repro:
WpfAppTest.zip
The text was updated successfully, but these errors were encountered: