Skip to main content

Posts

Showing posts from August, 2018

Minimal ASP.NET Core Dependencies for Google Cloud

After a long hiatus, I'm slowly starting back on blogging and some personal projects. To get me back in the swing of things, here's a short post on running ASP.NET core on Google Cloud, since this seems poorly documented online.The default project created by the Google Cloud tools includes Microsoft.AspNetCore.All which is a huge dependency. If you want something more minimal:uninstall-package Microsoft.AspNetCore.Allinstall-package Microsoft.AspNetCoreinstall-package Microsoft.AspNetCore.Mvc.Coreinstall-package Microsoft.AspNetCore.MvcThis creates a runnable project using the standard Google Cloud Web API project template, although it still isn't ideal as it includes the Razor pages dependencies.