Skip to content

dotnet build fails to build XAML string resources #2011

@mjrousos

Description

@mjrousos

In a .NET Core (3.0.100-alpha1-009689) WPF project, the following XAML file builds fine with MSBuild but fails to build with dotnet build:

<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:system="clr-namespace:System;assembly=mscorlib">
    <system:String x:Key="StringResource">Foo</system:String>
</ResourceDictionary>

dotnet build gives this error:

error MC3061: The Element type 'System.String' does not have an associated TypeConverter to parse the string 'Foo'. Line 4 Position 43.

Metadata

Metadata

Assignees

Labels

area-wpfIssues related to WPF in .NET Core

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions