如何在 Visual Studio for Mac 上开发 Windows 应用程序 [英] How to develop Windows app on Visual Studio for Mac

查看:400
本文介绍了如何在 Visual Studio for Mac 上开发 Windows 应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近买了一台 iMac,以便在更好的环境中在 Visual Studio for Mac 上开发我的应用程序(Windows 上有很多问题),但在 Visual Studio for mac 上,没有 UWP 项目.

I recently bought an iMac in order to develop my App on Visual Studio for Mac in a better environment (lots of issues on Windows), but on the Visual Studio for mac, there is no UWP projects.

据了解,我必须创建一个新的 .NET 项目,但是为了让应用程序能够安心地在 Windows 上正常运行,要正确地实现该项目需要遵循哪些步骤?我应该使用完全支持 .NET 核心框架的 Visual Studio 代码吗?

It is understood that I have to create a new .NET project, but what are exactly the steps to follow in order to achieve that correctly for the app to work on Windows with a peace of mind? Should I have gone with Visual Studio code, which support the .NET core framework completely?

我在其他答案中看到我需要 .NET SDK 工具等等,但是如果您不介意原因(不是安装内容,只有对应用程序的精通技术的解释),则需要更多详细信息最后正确构建!

I saw on other answers that I need the .NET SDK tool, and so forth, but further details are needed if you don't mind on the why (not the installation stuffs, only the tech savvy explanations for the app to build correctly at the end!

推荐答案

您将需要运行 Windows 安装(例如,通过 Parallels 或 Boot Camp),然后运行 ​​Windows 版本的 Visual Studio 以创建 UWP 应用.

You will need to run a Windows installation (eg, via Parallels or Boot Camp) and then run the Windows version of Visual Studio to create UWP apps.

您可以在 MacOS 上的 Visual Studio 中进行大量业务逻辑编码,但您需要 Visual Studio 和 Windows SDK 才能使用 WinRT 类型(构建 UWP 应用程序所需)并正确构建/打包用于部署的应用程序.

You can do a lot of the business-logic coding inside Visual Studio on MacOS, but you will need Visual Studio and the Windows SDK to use WinRT types (which are required to build a UWP app) and to correctly build / package the app for deployment.

这篇关于如何在 Visual Studio for Mac 上开发 Windows 应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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