Visual Studio 2017,C#,Mono跨平台Linux? [英] Visual Studio 2017, C#, Mono Cross Platform Linux?

查看:154
本文介绍了Visual Studio 2017,C#,Mono跨平台Linux?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

那么使用Visual Studio 2017(或2015)进行开发的方法是什么?用Linux构建跨平台桌面GUI应用程序? 广告全部表明Xamarin是要走的路...你去Mono网站并且当前页面显示
不再在Windows上使用monodevelop,并指向下载/安装Xamarin到VS. 我知道Xamarin现在是微软,基于Mono构建,所以听起来很合理。 好的,安装Xamarin到VS2017 - 除了没有任何表明它适用于
Linux / Mono ...只是Android / Apple等。

So what is the method to use Visual Studio 2017 (or 2015) to develop & build a cross platform desktop GUI application with Linux?  The advertising all indicates Xamarin is the way to go...You go to Mono website and the current pages indicate to no longer use monodevelop on Windows, and point to downloading / install Xamarin to VS.  I know Xamarin is now Microsoft and built on Mono, so that sounds reasonable.  OK, install Xamarin to VS2017 - except nothing there indicates that it works with Linux / Mono... just Android / Apple, etc.

列在VS2017的扩展部分你会发现一个蹩脚的"单一工具"有一个警告不能安装到VS2017的帮助应用程序(真的??它为什么列出?)...安装时XBuild函数排序有效,调试器没有(硬崩溃
VS2017,我认为不应该发生......我猜这就是安装警告的原因。) 还没见过其他的"monodebugger"。远程调试工具在VS2017中正常工作。

Listed in the Extensions section on VS2017 you'll find a lame "mono-tools" helper app that has a warning to not install to VS2017 (Really?? Why is it listed??)...when it is installed the XBuild function sort of works, the debugger does not (hard-crashes VS2017, which I thought wasn't supposed to happen...I guess that's why the install warning is there).  Haven't seen the other "monodebugger" remote debugger tool work right either in VS2017.

我退回到VS2015,并且有一个"Monohelper"。使用XBuild工作得更好的工具......但又不想安装到VS2017,至少不是我看到的。

I dropped back to VS2015 and for that there is a "Monohelper" tool that works a bit better with XBuild...but again doesn't want to install to VS2017, at least not that I see.

SO: 使用VS2015 / 2017 ...是否有任何当前基于Visual Studio的工具链配置适用于使用Mono / Linux进行跨平台C#dot NET开发? 


SO:  With VS2015 / 2017... is there any current Visual Studio-based toolchain configuration that works for cross-platform C# dot NET development with Mono / Linux? 

推荐答案

您好,

欢迎来到MSDN论坛。

Welcome to MSDN forum.

Xamarin产品在Linux上不可用,但MonoDevelop,据我所知,没有基于Visual Studio的工具链配置适用于在Visual Studio 2017中使用Mono / Linux进行跨平台C#dot NET开发。您需要构建
使用MonoDevelop的桌面软件,请查看:
http://stackoverflow.com/questions/8264323/how-to-compile-a-visual-studio-c-sharp-project-with-mono/35362534#35362534

您也可以使用经典的Windows窗体,因为它可以在Linux,Mac和Windows上运行,尽管它是一种较旧的技术。 这是.NET平台的标准。您还可以查看以下内容:

You can also use classic Windows Forms for this as it will run on Linux, Mac and Windows although it is an older technology.  This is standard in the .NET platform. You can also check out the following:

mono / xwt

GUI Toolkits |单声道

祝你好运,

Joyce


这篇关于Visual Studio 2017,C#,Mono跨平台Linux?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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