Skip to content

WPF template used by dotnet cli should include a glob to add auto-dependency between .xaml and .xaml.cs files #271

Closed
@jongleur1983

Description

@jongleur1983

I'd be happy to create a PR for this, but couldn't find where the project template is defined:

In classic .NET Framework WPF applications the XAML files (.xaml) are dependentUpon their code-behind partials (.xaml.cs).
This is reflected in the VS solution explorer.

For WPF on Core3 this is not yet the case. It would be easy to add a glob that wildcards this dependency by default:

<ItemGroup>
  <Compile Update="**\*.xaml.cs" DependentUpon="%(Filename)" />
</ItemGroup>

If someone could point me to the repository and/or location where the wpf project template is defined I'd be happy to issue a PR to add that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Enhancement RequestedProduct code improvement that does NOT require public API changes/additions

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions