I have been using ubuntu 10.04 and recently 11.10. I have mono develop installed thro synaptics or ubuntu software centre.
我一直在使用ubuntu 10.04和最近的11.10。我有mono开发安装通过突触或ubuntu软件中心。
I have been doing c# and windows forms programming on visual studio on vista.
我一直在vista的visual studio上做c#和windows窗体编程。
However, I have never succeeded in making system.drawing or system.windows.forms available in my mono develop on ubuntu.
然而,我从来没有成功制作过系统。图纸或system.windows。我在ubuntu上的mono开发中提供的表单。
The mono site advertises that system.windows.forms come installed with my mono installation. How can it be, I cannot find it? The mono site does not even have link for me to download the system.windows.forms libraries.
mono网站为这个系统做广告。表单随mono安装一起安装。怎么可能,我找不到它?mono网站甚至没有我下载system.windows的链接。表单库。
I need to get on with writing c# + winforms apps on linux, but which I will deploy on windows vista. Even though I have visual studio on my dual booted ubuntu/vista, I am a multi-threaded multi-tasking creature where I will perform both windows .NET and linux programming simultaneously. Therefore, I have to do my multitasking on ubuntu. No, do not suggest cygwin.
我需要继续在linux上编写c# + winforms应用程序,但我将在windows vista上部署它们。尽管我在双启动的ubuntu/vista上有visual studio,但我是一个多线程的多任务生物,在这里我将同时执行windows . net和linux编程。因此,我不得不在ubuntu上进行多任务处理。不,不要说西格温。
I cannot locate any system.windows.forms tools in mono develop on my ubuntu. All I can see is GTK# tools, and I am not interested in GTK. Please advise. Do I have to download windows forms libs for linux separately? Are there special steps which I have to make, which the ubuntu mono installation somehow failed to make, in order to have winforms tools available on mono develop?
我找不到任何系统。在我的ubuntu上开发mono中的表单工具。我所能看到的只是GTK#工具,我对GTK不感兴趣。请建议。我需要单独下载windows窗体libs吗?为了让winforms工具在mono开发中可用,我需要做一些特殊的步骤吗?
[BTW, please refrain from politically charged questions/statements about why I am using windows technology on linux, vice versa]
[顺便说一句,关于我为什么在linux上使用windows技术,请不要提出带有政治色彩的问题/声明,反之亦然]
1 个解决方案
#1
3
MonoDevelop does not have a Windows Forms GUI designer, so you can't design your GUI using MonoDevelop. You should however be able to open your project in MonoDevelop and compile and run/debug it (you can also just copy over the binary from Windows and execute it on Linux).
MonoDevelop没有Windows窗体GUI设计器,因此不能使用MonoDevelop设计GUI。但是,您应该能够在MonoDevelop中打开您的项目,并编译并运行/调试它(您也可以从Windows中复制二进制文件并在Linux上执行它)。
If there is a specific problem that shows up when you try to execute your application please provide the error details (I think most distros include winforms my default and it should just work, but your distro might provide winforms as a separate package).
如果在尝试执行应用程序时出现了特定的问题,请提供错误细节(我认为大多数发行版都包含winforms my default,它应该可以工作,但是您的发行版可能会提供winforms作为一个单独的包)。
Have in mind that windows-specific p/invokes will likely fail, but fortunately there is a tool you can use to analyze your application to find many potential problems: http://mono-framework.com/MoMA
记住,特定于windows的p/invoke可能会失败,但幸运的是,您可以使用一个工具来分析应用程序,以发现许多潜在的问题:http://mono-framework.com/MoMA
#1
3
MonoDevelop does not have a Windows Forms GUI designer, so you can't design your GUI using MonoDevelop. You should however be able to open your project in MonoDevelop and compile and run/debug it (you can also just copy over the binary from Windows and execute it on Linux).
MonoDevelop没有Windows窗体GUI设计器,因此不能使用MonoDevelop设计GUI。但是,您应该能够在MonoDevelop中打开您的项目,并编译并运行/调试它(您也可以从Windows中复制二进制文件并在Linux上执行它)。
If there is a specific problem that shows up when you try to execute your application please provide the error details (I think most distros include winforms my default and it should just work, but your distro might provide winforms as a separate package).
如果在尝试执行应用程序时出现了特定的问题,请提供错误细节(我认为大多数发行版都包含winforms my default,它应该可以工作,但是您的发行版可能会提供winforms作为一个单独的包)。
Have in mind that windows-specific p/invokes will likely fail, but fortunately there is a tool you can use to analyze your application to find many potential problems: http://mono-framework.com/MoMA
记住,特定于windows的p/invoke可能会失败,但幸运的是,您可以使用一个工具来分析应用程序,以发现许多潜在的问题:http://mono-framework.com/MoMA