Work with .resx files fail on net6

Luqi 0 Reputation points
2024-04-03T06:30:55.7033333+00:00

Hi there, today I have a strange problem, I am using .resx files to implement multilanguage, I created a project to manage these .resx files, let's say the project is called Common, which contains *.zh-CN.resx. When I compile and deploy my project, I found the following two cases.

  1. On net6, if it is on windows, the zh-CN folder has Common.resources.dll, but under Linux, it will not generate Common.resources.dll
  2. On net7, both windows and Linux can generate zh-CN/Common.resources.dll I didn't do any specialization, so I don't know why it is like that, is there any difference in the handling of .resx between net6 and net7? Thanks.

BR,
Luqi

Developer technologies | .NET | Other
{count} votes

1 answer

Sort by: Most helpful
  1. Luqi 0 Reputation points
    2024-04-05T02:37:56.5266667+00:00

    After investigating, this is a known bug, see the link: https://github.com/dotnet/msbuild/issues/3897

    BR,

    Luqi

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.