如何在Visual Studio中进行开发,然后将应用程序部署到Linux机器 [英] How to development in Visual Studio and then deploy apps to Linux machine

查看:171
本文介绍了如何在Visual Studio中进行开发,然后将应用程序部署到Linux机器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在Visual Studio中开发应用程序,然后将其部署到Linux机器(操作系统-Ubuntu,Web服务器-Nginx).可以解释一下步骤,对您有很大的帮助

How to develop app in Visual Studio and then deploy apps to Linux machine (OS - Ubuntu, web server - Nginx). Can any explain the steps, it will be a great help

推荐答案

我会说,有三种方法可以使用mono来为Linux开发应用程序.

I would say that there are three ways how you can develop apps for Linux using mono.

首先仅使用Visual Studio进行开发,并不时将应用程序部署到Linux以查看潜在的问题.我个人使用这种情况是因为它很简单,当您不使用MS特定的东西或完全不受支持的东西时,那么您应该不会有问题(至少到目前为止我没有).缺点是您只会在Linux机器上的运行时发现单声道特定的问题.

First is using only Visual Studio for development and from time to time deploy your app to Linux to see potential issues. I personally use this scenario because it's simple and when you are not messing with MS specific stuff or yet fully unsupported things then you shouldn't have problems (at least I didn't so far). Disadvantage is that you will discover mono specific problems only during runtime on Linux machine.

第二种方法是将Visual Studio与 Mono Tools 一起使用.我在beta版本中对其进行了测试,有时它非常方便(您将发现单声道特定问题的阶段转移到您的开发环境中,但是在Linux机器上您仍然会遇到某些问题),但是由于此工具没有现在支持调试,我个人不使用它.

Second approach is using Visual Studio with Mono Tools. I tested it when it was in beta and it was sometimes quite handy (you will move the phase of discovering mono specific problems to your dev environment, however you can still have some certain issues on Linux machine), but since this tool doesn't support debugging for now I don't use it personally.

第三种方法是在Linux上仅使用 MonoDevelop (因为现在仅在Linux中支持调试).在2.2版本中,此IDE变得非常好,适合开发,但是我仅测试了控制台和基本的ASP.NET MVC应用程序,因此无法告诉您它是否已准备好用于更大的项目.

Third approach is to use only MonoDevelop on Linux (since debugging is now supported only in Linux). With 2.2 release this IDE becomes really good and suitable for development however I have tested only console and basic ASP.NET MVC apps so I can't tell you if it's ready for bigger projects.

部署到Linux非常容易-我只是在Linux机器上安装了proftpd,对其进行了配置,然后从Windows机器复制了项目.

Deployment to Linux is quite easy - I just installed proftpd on Linux machine, configured it and copied project there from Windows machine.

这篇关于如何在Visual Studio中进行开发,然后将应用程序部署到Linux机器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆