Question

Is it possible (native or via extension) to group elements in Solution folders in virtual subfolders? e.g.:

ArticleGalleryItemPhone.axml
ChangePasswordPhone.axml
ChangePasswordTablet.axml
DeviceBigListItemPhone.axml
DeviceBigListItemTablet.axml
FirstLaunchGalleryItemPhone.axml
FirstLaunchGalleryItemTablet.axml
FirstLaunchPhone.axml
FirstLaunchTablet.axml
ForgotPasswordPhone.axml
ForgotPasswordTablet.axml
HeaderPhone.axml
HeaderTablet.axml
HomePhone.axml
LoginPhone.axml
LoginTablet.axml
OutOfCoffee.axml

should be displayed with filter *Tablet and *Phone like:

Phone
    ArticleGalleryItemPhone.axml
    ChangePasswordPhone.axml
    DeviceBigListItemPhone.axml    
    FirstLaunchGalleryItemPhone.axml    
    FirstLaunchPhone.axml    
    ForgotPasswordPhone.axml    
    HeaderPhone.axml    
    HomePhone.axml
    LoginPhone.axml

Tablet  
    ChangePasswordTablet.axml
    DeviceBigListItemTablet.axml
    FirstLaunchGalleryItemTablet.axml
    FirstLaunchTablet.axml
    ForgotPasswordTablet.axml
    HeaderTablet.axml
    LoginTablet.axml
OutOfCoffee.axml

The Problem is: Xamarin.Android needs this flat folder structure :( Prebuildsteps, that flattens the folder are a bit tooo hacky.

Was it helpful?

Solution

Our Solution for now:

We use the nesting feature of Visual Studio. There are extensions which allow to define nesting for custom file types:

Result:

File nesting in Visual Studio

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top