0

Why does VS2017 for Mac only allow you to publish a .net core web api to Azure. There is no other option. Is it because I'm using the community edition? If there is no other option beside Azure, how then do I publish?

Machavity
  • 30,841
  • 27
  • 92
  • 100
Post Impatica
  • 14,999
  • 9
  • 67
  • 78
  • 1
    "There is no other option." What are the options you are looking for? – Lex Li Aug 19 '17 at 05:37
  • @LexLi there use to be a publish to file, ftp, etc in other version of Visual Studio. – Post Impatica Aug 19 '17 at 06:34
  • 1
    Currently Visual Studio for Mac only supports publishing to Azure for ASP.NET Core projects. This is independent of the edition you are using. Your best bet is to use Visual Studio on Windows if you need to support publishing to file or FTP. – Matt Ward Aug 19 '17 at 11:03
  • @Machavity I edited the question to remove my ramblings about licensing. – Post Impatica Aug 20 '17 at 13:50

1 Answers1

1

Found this little jewel that will answer all your .net core questions as well as how to publish in IIS: Thank you Rick Strahl

But basically I ran this command to publish (win7-x64 is an RID for Windows 2008R2):

dotnet publish -c Release -r win7-x64 -f netcoreapp2.0

Post Impatica
  • 14,999
  • 9
  • 67
  • 78