dotnet CLI version on Google Cloud Shell

83 views
Skip to first unread message

Vicente Maciel Junior

unread,
Jun 18, 2017, 12:22:39 PM6/18/17
to Google App Engine
Hi people,

I'm trying to implemented a way to build and publish apps to the App Engine Flex using the Google Cloud Shell.
So, the idea is to be able to:

1 - Access the Google Cloud Console
2 - Open the Google Cloud Shell
3 - Clone/pull my source code from the Google Source Repository
4 - Compile it (dotnet publish -c Release)
5 - Publish the updated version to the cloud using: gcloud beta app deploy <path to app.yaml>

Nothing new at this point...

The problem starts when I try to do the same with apps built to use dotnet core 1.0.x greater than 1.0.0, because the Google Cloud Shell has the dotnet CLI at version 1.0.0...

So my question is: Is there a way to update the dotnet CLI to 1.0.x or any other suggested way to have success with this process?

My objective with this approach is to eliminate the process of create the image on my machine and upload it consuming time because of the upload of the image.

Being able to code, test, debug on my machine and then commit and push the modifications to the cloud to update the image at the Google Cloud, may be a much faster way, I believe.

Thanks for any help, comment and/or suggestion.

Vicente Maciel Jr

Yannick (Cloud Platform Support)

unread,
Jun 19, 2017, 12:31:10 PM6/19/17
to Google App Engine
Hello Vicente,

Changes made to your Cloud Shell outside of its home directory will not persist between invocations of the Cloud Shell, so there is no way you can update the installed version of the dotnet cli yourself. What you could do at the moment is install the latest version of the dotnet cli on a GCE f1-micro instance, which is included in the GCE Always Free Usage Limits.

To get support for other versions of dotnet on the Cloud Shell, you should create a Feature Request on the Cloud Shell's issue tracker.

Vicente Maciel Junior

unread,
Jun 19, 2017, 1:37:36 PM6/19/17
to Google App Engine
Thank you so much for the info!

I'll submit this request.

Regards
Reply all
Reply to author
Forward
0 new messages