Skip to content

Build failed while writing custom controls #1264

@hez2010

Description

@hez2010
  • .NET Core Version: 3.0 preview 6
  • Windows version: windows 10 1809 17763.615
  • Does the bug reproduce also in WPF for .NET Framework 4.8?: No

Problem description:
Write a custom control, and build it. There's a possibility to get build error: Unknown build error, 'An item with the same key has already been added. Key: themes/generic.baml'.
And if you build it multiple times, it might succeed.

Actual behavior:
C:\Program Files\dotnet\sdk\3.0.100-preview6-012264\Sdks\Microsoft.NET.Sdk.WindowsDesktop\targets\Microsoft.WinFX.targets(687,5): error RG1000: Unknown build error, 'An item with the same key has already been added. Key: themes/generic.baml'

Expected behavior:
No errors.

Minimal repro:
XSecControls.zip

Metadata

Metadata

Assignees

Labels

BugProduct bug (most likely)rank40Rank: Priority/rank on a scale of (1..100)

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions