Skip to content

Instantly share code, notes, and snippets.

@davidortinau
Created December 29, 2016 16:32
Show Gist options
  • Save davidortinau/881331ab2a27d1299abbf3f1eb1d6997 to your computer and use it in GitHub Desktop.
Save davidortinau/881331ab2a27d1299abbf3f1eb1d6997 to your computer and use it in GitHub Desktop.
Xamarin Studio Project Template
using Xamarin.Forms;
namespace ${Namespace}.Views
{
public partial class MainPage : ContentPage
{
public MainPage ()
{
InitializeComponent ();
}
}
}
@davidortinau
Copy link
Author

davidortinau commented Dec 29, 2016

When the XS preference .NET Naming Policy for "Associate namespaces with directory names" is enabled, the resulting namescape below becomes "namespace ApplicationName.FolderName.Views" and breaks desired convention for Mvvm frameworks like Prism.

Is it possible to add any logic here in the template to adapt for this XS preference?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment