dotnet / dotnet/msbuild

[Feature Request]: Support non-Latin characters in MSBuild properties/itemgroups

Open
#9,054 3 comments 2 reactions 0 assignees View on GitHub
backlog Feature Request gathering-feedback Priority:3 triaged
Dominant language
C#
Stars
5.5k
Forks
1.5k
Avg merge
1d 8h
Merged PRs (30d)
141

Description

### Summary

I would like that MSBuild support at least property groups
```

<ДіалектFSharp>ua

```

### Background and Motivation

By itself Nuget handle such packages fine, dotnet build also works fine. But If I add
```

```
the tooling generates
```
C:\Users\User\.nuget\packages\веселшарп.библиотека\1.0.0
```
and this is produce `error MSB5016: The name "PkgВеселШарп_Библиотека" contains an invalid character "В".`

### Proposed Feature

Relax XML naming parser to support at least Cyrillic. I suspect Arabic would works too, but I do not have plans to use this, and this maybe too complicate.

I hope that only changes here would be enough:
https://github.com/dotnet/msbuild/blob/a9034a279cdb9f31166fa1212439822e6b2fbf56/src/Shared/XmlUtilities.cs#L169-L182

### Alternative Designs

_No response_

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.