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.
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.