I have followed this tutorial to deploy a .NET Core console application to an Azure Web Service WebJob.
My app is running locally without any issue (with dotnet
Alright, I've figured it out.
If you want to deploy a dotnet core app to Azure Web Service, include the runtime "win7-x86" if you are running your app in 32-Bit platform mode.
For a Visual Studio 2015 solution, your project.json should include :
"runtimes": {
"win10-x64": {},
"win7-x86": {} //IMPORTANT FOR AZURE DEPLOY
},
Or if you have already migrated to Visual Studio 2017, your .csproj should include this in PropertyGroup:
win10-x64;win7-x86
Also, your publish profile should include the same thing:
FileSystem
Release
netcoreapp1.1
bin\Release\PublishOutput
win7-x86 // IMPORTANT