question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
ryalanmscommented, Sep 28, 2021

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:

image

.NET Core:

image

0reactions
botchercommented, Oct 11, 2021

It looks a regression in .NET 6. it works with .NET 5. Do we have a solution?

Read more comments on GitHub >

github_iconTop Results From Across the Web

zh-CN resource dll is not generated when build web app in ...
The issue is when build and publish the solution in the Linux deployment server. only zh-CN (Chines) folder and resource. dll is not...
Read more >
dotnet build command - .NET CLI
The dotnet build command builds a project and all of its dependencies.
Read more >
c# - Disable Dll Culture Folders on Compile
I'm using 2 dlls ( Microsoft.Expression.Interactions.dll and System.Windows.Interactivity.dll ) that, when the parent application is compiled, ...
Read more >
Hangfire dashboard github. Net 7) Nov 19, 2022. Version of ...
Management Net 7) Hangfire Dashboard not available in prod env (. RecurringJobExtensions development by creating an account on GitHub.
Read more >
ExifTool by Phil Harvey
File Type Support EXIF IPTC XMP ICC1 Other 360 R/W R/W3 R/W3 R/W/C ‑ R/W/C QuickTime, R GoPro 3FR R R R R R ‑ 3G2,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found