dotnet / dotnet/windowsdesktop
How to set NeutralResourcesLanguageAttribute in my netcore project?
- Dominant language
- Shell
- Stars
- 211
- Forks
- 71
- Avg merge
- 2h 18m
- Merged PRs (30d)
- 81
Description
### Is there an existing issue for this?
- [X] 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
Contributor guide
Assessment
This issue has not been assessed yet.