This sample application is ready to deploy to Google App Engine Flexible Environment.
-
Follow the set-up instructions in the documentation.
-
Install the Google Cloud SDK. The Google Cloud SDK is required to deploy .NET applications to App Engine.
-
Install the .NET Core SDK, version 2.0 or newer.
PS > dotnet restore
PS > dotnet run
PS > dotnet restore
PS > dotnet publish
PS > gcloud beta app deploy .\bin\Debug\netcoreapp2.1\publish\app.yaml
Visual Studio is optional. An old, unmaintained branch of samples that work with Visual Studio 2015 is here.
Google Cloud Tools for Visual Studio make it easy to deploy to App Engine. Install them if you are running Visual Studio.
Open BattleshipGoogleCloud.csproj, and Press F5.
-
In Solution Explorer, right-click the BattleshipGoogleCloud project and choose Publish BattleshipGoogleCloud to Google Cloud.
-
Click App Engine Flex.
-
Click Publish.