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

How to set NeutralResourcesLanguageAttribute in my netcore project? #3878

Open
1 task done
fxanimal opened this issue Oct 6, 2023 · 1 comment
Open
1 task done

Comments

@fxanimal
Copy link

fxanimal commented Oct 6, 2023

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

I have a Netcore desktop application project
Compiler gives the following error message :

Error MC1000 Unknown build error, 'Could not find type 'System.Resources.NeutralResourcesLanguageAttribute' in assembly 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\3.1.0\ref\netcoreapp3.1\System.Runtime.dll'.' MyProj C:\Program Files\dotnet\sdk\6.0.203\Sdks\Microsoft.NET.Sdk.WindowsDesktop\targets\Microsoft.WinFX.targets 223

Then I added the following code in AssemblyInfo.cs
[assembly: NeutralResourcesLanguage("en")]

The compiler still gives the same error message.

I'd appreciate it if someone can give me a hint.
Thanks.

Expected Behavior

No response

Steps To Reproduce

No response

Exceptions (if any)

No response

.NET Version

netcore 5

Anything else?

Windows 10

@martincostello
Copy link
Member

martincostello commented Oct 6, 2023

Looks like this issue needs to be moved to dotnet/windowsdesktop.

(Also, both .NET Core 3.1 and .NET 5 are no longer supported)

@captainsafia captainsafia transferred this issue from dotnet/aspnetcore Oct 6, 2023
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

2 participants