我可以在 .NET Framework 中创建 UWP 项目吗? [英] Can I create a UWP project in .NET Framework?

查看:57
本文介绍了我可以在 .NET Framework 中创建 UWP 项目吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我认为我有一个带有 .NET Core 的通用 Windows 平台项目.我想将其转换为目标 .NET Framework.

I have Universal Windows Platform project with .NET Core I think. I want to convert it to target .NET Framework.

我该怎么做?

推荐答案

您确实可以使用 .NET 和 C# 构建 UWP 应用,但 UWP 应用仅包含完整 .NET Framework 中为每个命名空间提供的类型的子集.UWP 应用和 .NET 桌面应用之间的主要区别在于,前者在与其他进程隔离的沙箱中运行,而传统桌面应用通常作为完全信任进程运行.

You can indeed build a UWP app using .NET and C#, but UWP apps includes only a subset of the types provided in the full .NET Framework for each namespace. A main difference between a UWP app and a .NET desktop application is that the former runs in a sandbox that is isolated from other processes, whereas a traditional desktop application typically runs as a full-trust process.

请参阅 docs 了解有关 UWP 中缺少的 .NET API 的更多信息.您将无法在 UWP 应用中使用这些.

Please refer to the docs for more information about the missing .NET APIs in UWP. You won't be able to use these in a UWP app.

这篇关于我可以在 .NET Framework 中创建 UWP 项目吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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