Windows Visual Studio 2017 C#项目如何在Mac上运行? [英] How do Windows Visual Studio 2017 C# projects work on Mac?

查看:590
本文介绍了Windows Visual Studio 2017 C#项目如何在Mac上运行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人可以让我基本了解如何从Mac上的Windows构建项目吗?它应该只是在Visual Studio上干净利落地建立起来吗? Mac,即使它使用Windows DLL?

Can someone give me a basic understanding of how I would go about building a project from Windows on Mac? Should it simply build cleanly on Visual Studio for  Mac, even if it uses windows DLLs?

推荐答案

使用公共语言运行时的.NET核心部分的C#程序将编译并几乎没有变化。 这还包括对Windows窗体的支持,但不支持WPF。

C# programs that use the .NET Core part of the Common Language Runtime will compile and run pretty much unchanged.  This also includes support for Windows Forms, but not WPF.

它确实是一个MacOS应用程序。 如果您使用p / Invoke调用Windows DLL,那么这些将无效。 在MacOS上,p / Invoke可用于调用MacOS库。

It really is a MacOS app.  If you are using p/Invoke to call into Windows DLLs, those won't work.  On MacOS, p/Invoke can be used to call MacOS libraries.


这篇关于Windows Visual Studio 2017 C#项目如何在Mac上运行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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