Skip to content

Globbing with DependentUpon #169

@aienabled

Description

@aienabled

I've read this page about globbing in VS 2017 RC https://github.com/Microsoft/VSProjectSystem/blob/master/doc/overview/globbing_behavior.md and very happy with how everything works. But...

Are there any way of using DependentUpon with globbing?

Currently I have these rules:

    <Page Include="**\*.xaml">
      <SubType>Designer</SubType>
      <Generator>MSBuild:Compile</Generator>
    </Page>

    <Compile Include="**\*.xaml.cs">
      <DependentUpon>*.xaml</DependentUpon>
    </Compile>

But it seems DependentUpon is not working this way - solution explorer displays Foo.xaml and Foo.xaml.cs as the separate files, but I need Foo.xaml.cs to be nested in Foo.xaml.
There is a warning generated:
The parent file, '*.xaml', for file 'Foo.xaml.cs' cannot be found in the project file.

Regards!

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions