GoogleCloudPlatform / google-cloud-visualstudio

Google Cloud Tools for Visual Studio
https://cloud.google.com/tools/visual-studio/docs/
Apache License 2.0
88 stars 51 forks source link

Deployment can fail if the project directory has both a project file and a solution file #1085

Open jskeet opened 5 years ago

jskeet commented 5 years ago

Directory Layout:

The VS extension runs "dotnet publish" in the "App" directory without specifying that it wants to publish the project - the .NET Core SDK then publishes both projects in the target directory, leading to two .deps.json files, and Cloud Build fails.

Fix: specify the project file on the command line for dotnet publish.