From 832d21bb8a700dd4deeaccb0fdaba71473782921 Mon Sep 17 00:00:00 2001 From: Ido Flatow Date: Mon, 21 Nov 2022 11:38:15 +0200 Subject: [PATCH] Change ComputeEngine.pubxml to be self-contained The [tutorial](https://cloud.google.com/dotnet/docs/getting-started/getting-started-on-compute-engine) referencing this demo code uses an ASPNET VM image based on .NET Core 2.1 with runtime 2.1.4. Current runtime of .NET Core 2.1 uses a newer ASP.NET Core assemblies that are not installed on the VM. Deploying a self-contained web app solves this issue. --- HelloWorld/Properties/PublishProfiles/ComputeEngine.pubxml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/HelloWorld/Properties/PublishProfiles/ComputeEngine.pubxml b/HelloWorld/Properties/PublishProfiles/ComputeEngine.pubxml index 6400b1d..db892ba 100644 --- a/HelloWorld/Properties/PublishProfiles/ComputeEngine.pubxml +++ b/HelloWorld/Properties/PublishProfiles/ComputeEngine.pubxml @@ -13,7 +13,8 @@ by editing this MSBuild file. In order to learn more about this please visit htt False netcoreapp2.0 94827da7-c3c7-4745-82bf-392366fdcca4 - false + true + win10-x64 <_IsPortable>true Default Web Site @@ -25,4 +26,4 @@ by editing this MSBuild file. In order to learn more about this please visit htt <_SavePWD>True True - \ No newline at end of file +