Can we deploy a C# 7 web app to Azure using Kudu? -


since visual studio 2017 released , can use new c# 7 features expected work when deploying on azure web apps.

unfortunately we're seeing compile errors when using continuous deployment (kudu git deploy) seems azure doesn't support new toolchain yet.

is there can work (besides publishing assemblies directly)?

since don't yet have msbuild15 in azure. if want use c#7 features continuous integration, may need workaround

  1. for dotnet core web solution, can build in azure out of box. (it uses own dotnet msbuild.dll) [repository sample]
  2. for asp.net web solution, need add microsoft.net.compilers 2.0+ nuget package project new language feature applied. example, if class library in solution using new syntax, need add nuget package lib project. (the new c# compiler imported if refer nuget package) [repository sample]
  3. finally mixed solution (dotnet core web app + .net framework class lib), need run nuget restore .net framework lib project independently since dotnet restore not backwards compatible, cannot retore project old build system. did hacking deploy.cmd [repository sample]

these workarounds either try to
imitate msbuild15 (case1: dotnet msbuild.dll, case2: compiler nuget package)
or imitate nuget4.0 (case 3: run both dotnet restore , nuget3.5 restore)

we in process of building these tools azure, should out soon. can stay updated on github


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -