简体   繁体   English

如何在Mac上使用Vs代码部署ASP.NET Core MVC?

[英]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. 我正在使用Mac上的VS Code开发一个ASP.NET Core应用程序,现在是时候发布了。

I ordered a server (Not azure), registered the domain, but I'm not quite sure about how to deploy this to my Host. 我订购了一台服务器(Not azure),注册了域名,但我不太清楚如何将其部署到我的主机上。

The Host sended to me a Publish Profile, can I deploy my application with VS Code on a Mac ? 主持人向我发送了一个发布配置文件,我可以在Mac上使用VS Code部署我的应用程序吗?

Or should I publish in a local folder then send to the host via FTP? 或者我应该在本地文件夹中发布然后通过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. 我认为Windows的力量,以及Visual Studio for Windows中的发布配置文件,它只是工作...现在,在Mac上真的很混乱。

I`m not using Visual Studio for Mac because its too slow (Macbook air). 我没有使用Visual Studio for Mac,因为它太慢(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). 然后,获取在该过程中创建的发布文件夹,并通过FTP(在wwwroot文件夹中)上传到我的主机。

That's it. 而已。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在 VS Code 中为 ASP.NET Core 设置默认端口? - How to set default port for ASP.NET Core in VS Code? 如何在 VS Code 中使用 Angular 项目运行 ASP.NET MVC? - How to run ASP.NET MVC with Angular project in VS Code? 如何部署ASP.NET MVC 4应用程序? - How to deploy ASP.NET MVC 4 app? 在 Linux 主机上部署 Asp.net 核心 mvc 网站(godaddy) - Deploy Asp.net core mvc website on Linux hosting (godaddy) 无法在 VS Mac 上更新 asp.net 核心项目中的包 - Could Not update packages in asp.net core project on VS Mac 如何使用Topshelf将asp.net Core 2.1 MVC应用程序部署为Windows服务 - How to deploy asp.net core 2.1 MVC application as windows service using topshelf 给定文件结构,如何部署ASP.NET Core MVC项目 - How to deploy an ASP.NET Core MVC project given its file structure 在 VS Code 中使用实时预览调试 asp.net core mvc web 应用程序 - Debug asp.net core mvc web application with live preview in VS Code 使用 VS Code 在 ASP.NET Core MVC 中调试 javascript 和 c# - Debug both javascript and c# in ASP.NET Core MVC using VS Code 如何在带有VS的ASP.NET MVC中部署/发布两个项目(Codeplex:AspNet.Identity.MySQL) - How to Deploy/Publish two projects in ASP.NET MVC with VS (Codeplex: AspNet.Identity.MySQL)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM