dotnet / dotnet/msbuild

Resource Names Case Insensitive - Why?

Open
#5,658 5 comments 1 reaction 0 assignees View on GitHub
Area: Task: GenerateResource triaged
Dominant language
C#
Stars
5.5k
Forks
1.5k
Avg merge
1d 6h
Merged PRs (30d)
139

Description

I am working in a project that need to have localization.

When compiles, I get a warn that I have duplicate resourne names.

Lookng the resource, they are not duplicate, the problem is that it uses case-insensitive, causing resources name like 'total' be the same of 'TOTAL' or 'Total'.

```

Total


TOTAL

```

Is this correct to behave like this ? How can I do an work around? I have a list of more than 200 duplicates and will me impossible to do by hand this... would be possible to do a bypass on this check?

I am using .Net Core 2.2 on my Mac OSx and I have an API project that gets the SharedResource from another project (Class library)

Here is the call:

https://github.com/dotnet/msbuild/blob/df645299a158c787f9884fca2bcd8c295318193f/src/Tasks/GenerateResource.cs#L2090

Here is where I think the problem is:

https://github.com/dotnet/msbuild/blob/df645299a158c787f9884fca2bcd8c295318193f/src/Tasks/GenerateResource.cs#L1467

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.