简体   繁体   中英

Deploy asp.net core website or console app using Visual Studio for Mac

I've found instructions for deploying directly to Azure, but not a lot for deploying to just a local folder. There doesn't seem to be anything under the menus or add-ons that seemed to do it either. Maybe it's a command line tool?

I found the answer, or at least an answer. I couldn't find any way to publish from within Visual Studio for Mac, but just using the command line I was able to do it.

This is the website I found the answer on: https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-publish?tabs=netcore2x

This was the commands I found in case that site goes down.

dotnet publish [<PROJECT>] [-c|--configuration] [-f|--framework] [--force] [--manifest] [no-dependencies] [--no-restore] [-o|--output] [-r|--runtime] [--self-contained] [-v|--verbosity] [--version-suffix]
dotnet publish [-h|--help]

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM