Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Publish to Azure in Visual Studio Community for Mac

I created a brand new project in Visual Studio Community for Mac and got my Azure app service set up, ready to be deployed to. In Visual Studio, for some reason there is no publish option at all when I right click on the project itself. It is an MVC project, so this doesn't make a lot of sense. Is there something I need to do first?

no publish option anywhere

like image 538
muttley91 Avatar asked Oct 29 '22 06:10

muttley91


2 Answers

Just use .Net Core Mvc App template. Somehow they made publishing only available for Core runtime. And it is not matter of Vs edition, works in Community as well.

Also: "Note that the .NET Core 2.0 SDK needs to be installed via a separate download to enable .NET Core 2.0 development in Visual Studio 2017 for Mac Version 7.1." https://www.visualstudio.com/en-us/news/releasenotes/vs2017-mac-relnotes

like image 127
Konstantin Salavatov Avatar answered Nov 09 '22 16:11

Konstantin Salavatov


You'll need Visual Studio for Mac Professional. I had the same problem, then I signed in using my work MSDN account. As soon as it registered, I was able to right click on the project and 'Publish to Azure' showed up.

like image 21
Amanda_Panda Avatar answered Nov 09 '22 14:11

Amanda_Panda