Skip to content

Instantly share code, notes, and snippets.

@jamesmontemagno
Created January 2, 2018 19:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jamesmontemagno/3801d5cd428a943768f714778201ecf1 to your computer and use it in GitHub Desktop.
Save jamesmontemagno/3801d5cd428a943768f714778201ecf1 to your computer and use it in GitHub Desktop.
//Add using statements:
//using Xamarin.Forms;
//using Ooui.AspNetCore;
//Add these in Configure:
//app.UseOoui();
//Forms.Init();
public void Configure(IApplicationBuilder app, IHostingEnvironment env)
{
if (env.IsDevelopment())
{
app.UseDeveloperExceptionPage();
}
else
{
app.UseExceptionHandler("/Home/Error");
}
app.UseStaticFiles();
app.UseOoui();
Xamarin.Forms.Forms.Init();
app.UseMvc(routes =>
{
routes.MapRoute(
name: "default",
template: "{controller=Home}/{action=Index}/{id?}");
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment