dotnet / dotnet/arcade

XliffTasks breaks with strongly generated resources classes

Open
#14,239 3 comments 0 reactions 0 assignees View on GitHub
up-for-grabs
Dominant language
C#
Stars
729
Forks
397
Avg merge
3d 15m
Merged PRs (30d)
149

Description

- [ ] This issue is blocking
- [ ] This issue is causing unreasonable pain

Enabling generated strongly typed code for resources breaks XliffTasks with:

> error MSB3573: The language for a strongly typed resource class was specified, but more than one source file was passed in. Please pass in only one source file at a time if you want to generate strongly typed resource classes.

Test project: [xlifftest-e9b5f83.zip](https://github.com/dotnet/arcade/files/13486531/xlifftest-e9b5f83.zip)
To repro: download & unzip & `dotnet build`

For reference, this is the `EmbeddedResource`:

```xml

ResXFileCodeGenerator
Resources.Designer.cs
Resources
Resources
Resources.designer.cs
CSharp
Resources
Resources
true
true

```

Binlog: [msbuild.binlog.zip](https://github.com/dotnet/arcade/files/13486541/msbuild.binlog.zip)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.