How to development in Visual Studio and then deploy apps to Linux machine

半世苍凉 提交于 2019-12-08 04:00:52

问题


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


回答1:


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

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.

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.

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.

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




回答2:


If you are developing an application for Linux in C (as Nginx is) or C++, you need to develop on Linux.

There are many IDEs for Linux that you can use for this.

You can also try to run Visual Studio in Linux using Wine.




回答3:


Use Mono on Windows and compile your apps with it , I guess Apache is only supported ... Disclaimer - I do not have personally experience with it ...



来源:https://stackoverflow.com/questions/2056350/how-to-development-in-visual-studio-and-then-deploy-apps-to-linux-machine

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!