bradgonesurfing
bradgonesurfing

Reputation: 32192

How to correctly generate XAML in multi file templates in resharper

I have a multi file template with 4 template files implementing an MVVM setup. The result is

enter image description here

The files are generated in the same order as they have been defined in the template. However the obvious error is that the FeedbackFormView.xaml.cs is not a child of FeedbackFormView.xaml as it should be in a visual studio project. How to get this to automatically work? I know I can manually edit the csproj file and set the DependentUpon property but this is not a nice workaround.

Using Resharper version

enter image description here

Upvotes: 0

Views: 166

Answers (1)

citizenmatt
citizenmatt

Reputation: 18583

ReSharper doesn't support automatically setting files as being nested. You can use the File Nesting extension for Visual Studio to allow you to do this with a right click, and I think you can also set up rules to allow for automatic nesting. You can get it from Visual Studio's Tools and Updates extension manager. Here's the gallery page, and the GitHub project

Upvotes: 2

Related Questions