vscode-azureappservice icon indicating copy to clipboard operation
vscode-azureappservice copied to clipboard

.NET Web API 3.1 fails on deploy for Linux

Open fiveisprime opened this issue 5 years ago • 3 comments
trafficstars

(From internal customer):

dotnet new webapi // 3.1 dotnet publish -c Release -o ./publish

right-click deploy, choose runtime latest

Gives error in logs like so:

2020-02-26T13:17:07.246774534Z Trying to find the startup DLL name...
2020-02-26T13:17:07.247350249Z Found the startup D name: 02demo-azure-app-service.dll
2020-02-26T13:17:07.247844261Z Running the command: dotnet "02demo-azure-app-service.dll"
2020-02-26T13:17:07.264710698Z It was not possible to find any compatible framework version
2020-02-26T13:17:07.265168010Z The specified framework 'Microsoft.AspNetCore.App', version '3.1.0' was not found.
2020-02-26T13:17:07.265524219Z - The following frameworks were found:
2020-02-26T13:17:07.265827727Z 3.0.0 at [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
2020-02-26T13:17:07.266045632Z 
2020-02-26T13:17:07.266412842Z You can resolve the problem by installing the specified framework and/or SDK.
2020-02-26T13:17:07.266634048Z 
2020-02-26T13:17:07.266644648Z The .NET Core frameworks can be found at:
2020-02-26T13:17:07.292463216Z - https://aka.ms/dotnet-download

fiveisprime avatar Feb 28 '20 19:02 fiveisprime

I'm not convinced "Latest" and "LTS" are running 3.1. The portal doesn't even give those as options: Screen Shot 2020-03-05 at 4 11 47 PM

There's clearly something up because here is our list of runtimes (which we do not hard-code): Screen Shot 2020-03-05 at 4 13 21 PM

ejizba avatar Mar 06 '20 00:03 ejizba

If I create a .NET Core 3.1 app from the portal and deploy from our extension it works.

ejizba avatar Mar 06 '20 00:03 ejizba

Per offline discussion, the platform team is working on updating the availableStacks api

ejizba avatar Mar 09 '20 22:03 ejizba