简体   繁体   中英

How to Deploy ASP.NET Core MVC with Vs Code on a Mac?

I'm developing a ASP.NET Core app with VS Code on a Mac, and it is time to publish.

I ordered a server (Not azure), registered the domain, but I'm not quite sure about how to deploy this to my Host.

The Host sended to me a Publish Profile, can I deploy my application with VS Code on a Mac ?

Or should I publish in a local folder then send to the host via FTP?

Thanks in advance.

I came thought the Windows Side of the force, and with the publish profile in Visual Studio for Windows, it just works...Now, on a Mac is really confusing.

I`m not using Visual Studio for Mac because its too slow (Macbook air).

I found my solution.

After developing the site. I should run a

dotnet publish

and then, get the publish folder that was created in the process and upload to my host via FTP (inside the wwwroot folder).

That's it.

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