简体   繁体   English

在Mac上创建Windows窗体应用程序(.NET Framework)

[英]Creating windows form app (.NET framework) on Mac

Im doing work in collage with coding windows form apps. 我正在用编码Windows窗体应用程序在拼贴中工作。 I'm doing it in C# although i don't think that impacts the problem I have. 尽管我认为这不会影响我遇到的问题,但我正在用C#进行操作。

When at home I wish to continue this coding but I can't as I have a macbook book. 在家时,我希望继续进行此编码,但因为有一本Macbook,所以不能。

My question is, is there any simple way to be able to code windows form app on a mac book. 我的问题是,有没有一种简单的方法就可以在Macbook上编写Windows Form应用程序的代码。 So far i have not been able to find a way to do this. 到目前为止,我还没有找到一种方法来做到这一点。 Is there a way or do i have to save up and buy a laptop and run Windows on it. 有没有办法或者我必须省钱买一台笔记本电脑并在其上运行Windows。

Thanks Scott 谢谢斯科特

There's no way to develop for Windows Forms on a platform other that Windows itself. 除了Windows本身,无法在Windows平台上开发Windows Forms。 You might use other tech stacks or cross platform toolkits like GTK+ or Eto which can translate the designer code and create Windows Forms applications, but native Windows Forms development is not available due to a huge count of Windows-exclusive PInvokes. 您可能会使用其他技术堆栈或跨平台工具包,例如GTK +Eto ,它们可以翻译设计器代码并创建Windows Forms应用程序,但是由于存在大量Windows专有的PInvokes,因此无法进行本机Windows Forms开发。 No chance here. 这里没有机会。

However, you don't need to have a Windows laptop to code on a mac - you always have the option to use virtualized desktops where the Windows system runs as a so called "image". 但是,您不需要Windows笔记本电脑就可以在Mac上进行编码-您始终可以选择使用虚拟桌面,在该桌面上Windows系统作为所谓的“映像”运行。 Some are free and just require you to put in a Windows installation disk (or disk image) - so you run the installation in that virtualized system and can boot it shutdown it whenever you like. 有些是免费的,只需要您放入Windows安装磁盘(或磁盘映像)即可,因此您可以在该虚拟化系统中运行安装,并可以在需要时启动它来关闭它。 It is literally like having a computer in a computer. 从字面上看,就像在计算机中拥有一台计算机。 There are a lot of virtualization tools like VMWare Player or Oracles VirtualBox . 有很多虚拟化工具,例如VMWare Player或Oracles VirtualBox On Mac, Parallels Desktop is very popular. 在Mac上, Parallels Desktop非常流行。 It can integrate virtualized Windows applications to MacOS without having that virtualized image as "box" you connect to. 它可以将虚拟化的Windows应用程序集成到MacOS,而无需将该虚拟化映像作为您连接的“盒子”。 The virtualized windows integrate quite seamlessly into the Mac desktop and support window management commands like App Exposé and Mission Control. 虚拟化的窗口非常无缝地集成到Mac桌面中,并支持诸如AppExposé和Mission Control之类的窗口管理命令。

Another great options is to create an account on Microsoft Azure where you can rent virtual Windows systems online to a very low price. 另一个不错的选择是在Microsoft Azure上创建一个帐户,您可以以非常低的价格在线租用虚拟Windows系统。 The benefit is, that those systems run in the clould and can be accessed from everywhere you'll ever go (as long as you have an internet connection). 这样做的好处是,这些系统运行在集群中,并且可以从任何地方访问(只要您有Internet连接即可)。

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

相关问题 XP中的简单Windows表单应用程序和.NET框架要求 - Simple Windows form app and .NET framework requirements in XP 通过自动下载.NET Framework创建Windows安装程序 - Creating a Windows installer with automatic download of .NET Framework 如何在 Windows 窗体应用程序 (.Net Framework) 中的 Visual Studio 中添加 Json 文件 - How to add Json file in visual studio in Windows Form app(.Net Framework) Windows Form App (.NET Framework) CRUD 项目,更改成功保存到 DataGridView,但不是实际的数据库表 - Windows Form App (.NET Framework) CRUD Project, changes successfully saves into DataGridView, but not the actual Database Table 在 DataGridView 窗口窗体应用程序中创建行 - Creating Rows in DataGridView windows form app 如何在 30 分钟后关闭 windows 表单? | 视觉工作室 C# Windows Forms App.Net 框架 - How do I make a windows form close after 30 minutes? | Visual Studio C# Windows Forms App .Net Framework 非Windows OS上的.NET Framework System.Windows.Form - .NET framework System.Windows.Form on non Windows OS Windows 你好验证 C# Windows Forms App (.NET Framework)? - Windows Hello validation with C# Windows Forms App (.NET Framework)? .NET Windows 表单应用程序 mysql 数据库查询 - .NET Windows Form app mysql database query 使用 Windows 窗体和 .NET Framework 在 Visual Studio 中创建项目 - Creating a project in Visual Studio with Windows Forms and the .NET Framework
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM