No zh-CN resouces.dll is generated when using `dotnet build` command
See original GitHub issue- .NET Core Version: (e.g. 6.0 RC1, or daily build number, use
dotnet --info
)dotnet --info
.NET SDK (reflecting any global.json): Version: 6.0.100-rc.1.21458.32 Commit: d7c22323c4
Runtime Environment: OS Name: Windows OS Version: 10.0.22000 OS Platform: Windows RID: win10-x64 Base Path: C:\Program Files\dotnet\sdk\6.0.100-rc.1.21458.32\
Host (useful for support): Version: 6.0.0-rc.1.21451.13 Commit: d7619cd4b1
.NET SDKs installed: 5.0.400 [C:\Program Files\dotnet\sdk] 6.0.100-rc.1.21458.32 [C:\Program Files\dotnet\sdk]
.NET runtimes installed: Microsoft.AspNetCore.App 5.0.9 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 6.0.0-rc.1.21452.15 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.NETCore.App 5.0.9 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 6.0.0-rc.1.21451.13 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.WindowsDesktop.App 5.0.9 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Microsoft.WindowsDesktop.App 6.0.0-rc.1.21451.3 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
To install additional .NET runtimes or SDKs: https://aka.ms/dotnet-download
-
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
Microsoft ® Build Engine version 17.0.0-preview-21458-01+2c5510013 for .NET Copyright © Microsoft Corporation. All rights reserved.
Determining projects to restore… Restored C:\path-to-project\WpfAppTest\WpfAppTest.csproj (in 78 ms). You are using a preview version of .NET. See: https://aka.ms/dotnet-core-preview You are using a preview version of .NET. See: https://aka.ms/dotnet-core-preview WpfAppTest -> C:\path-to-project\WpfAppTest\bin\Debug\net6.0-windows\WpfAppTest.dll WpfAppTest -> C:\path-to-project\WpfAppTest\bin\Debug\net5.0-windows\WpfAppTest.dll
Build succeeded. 0 Warning(s) 0 Error(s)
Time Elapsed 00:00:02.03
dir bin\Debug\net6.0-windows\
Volume in drive C has no label. Volume Serial Number is 627F-2271
Directory of C:\path-to-project\WpfAppTest\bin\Debug\net6.0-windows
09/24/2021 11:05 AM <DIR> . 09/24/2021 11:05 AM <DIR> … 09/24/2021 11:05 AM <DIR> ja 09/24/2021 11:05 AM <DIR> ref 09/24/2021 11:05 AM 639 WpfAppTest.deps.json 09/24/2021 11:05 AM 8,192 WpfAppTest.dll 09/24/2021 11:05 AM 147,968 WpfAppTest.exe 09/24/2021 11:05 AM 13,624 WpfAppTest.pdb 09/24/2021 11:05 AM 293 WpfAppTest.runtimeconfig.json 09/24/2021 11:05 AM <DIR> zh-Hans 5 File(s) 170,716 bytes 5 Dir(s) 263,739,359,232 bytes free
Expected behavior: WpfAppTest.resources.dll exists in zh-CN dir
Minimal repro: WpfAppTest.zip
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:8 (6 by maintainers)
Top GitHub Comments
zh-CN isn’t identified as a culture when building with .NET Core targeting .NET Core. Building with .NET Framework (VS) targeting .NET Core does identify zh-CN as a culture.
.NET Framework:
.NET Core:
It looks a regression in .NET 6. it works with .NET 5. Do we have a solution?