简体   繁体   English

Windows 桌面 (5) 在 .net 5 上下文中是什么意思?

[英]What does Windows Desktop (5) mean in context of .net 5?

I saw this link for the Registry class , which states it's for the Windows Desktop 5 "Version" of .net.我看到了这个 Registry 类的链接,它指出它适用于 .net 的 Windows Desktop 5“版本”。 I searched for what that means, but unfortunately the noise to signal ratio on such a search is large.我搜索了这意味着什么,但不幸的是,这种搜索的噪声信号比很大。

So what does Windows Desktop 5 mean?那么Windows Desktop 5 是什么意思呢? I know what .net is, .net framework, .net core, .net standard, UWP, the various Xamarin "versions"... But not what Windows Desktop is.我知道 .net 是什么、.net 框架、.net 核心、.net 标准、UWP、各种 Xamarin“版本”......但不知道 Windows 桌面是什么。

It's even stranger considering that I created a new .net 5 WPF project and typed in Registry , clicked CTRL+.考虑到我创建了一个新的 .net 5 WPF 项目并输入Registry ,然后单击 CTRL+ ,这就更奇怪了。 and got the option to add using Microsoft.Win32;并可以选择using Microsoft.Win32;添加using Microsoft.Win32; without doing anything else.不做任何其他事情。 So it seems to be simply part of .net 5 even though changing the "version" to .net 5 tells me that:所以它似乎只是 .net 5 的一部分,即使将“版本”更改为 .net 5 告诉我:

The requested page is not available for .NET 5.请求的页面不可用于 .NET 5。

The documentation for .Net Project SDKs states: .Net 项目 SDK文档指出:

The .NET SDK is the base SDK for .NET. .NET SDK 是 .NET 的基础 SDK。 The other SDKs reference the .NET SDK, and projects that are associated with the other SDKs have all the .NET SDK properties available to them.其他 SDK 引用 .NET SDK,并且与其他 SDK 关联的项目具有可供它们使用的所有 .NET SDK 属性。 The Web SDK, for example, depends on both the .NET SDK and the Razor SDK.例如,Web SDK 依赖于 .NET SDK 和 Razor SDK。

One of the SDKs that it mentions is Microsoft.NET.Sdk.WindowsDesktop which is它提到的 SDK 之一是Microsoft.NET.Sdk.WindowsDesktop ,它是

The .NET Desktop SDK, which includes Windows Forms (WinForms) and Windows Presentation Foundation (WPF). .NET 桌面 SDK,包括 Windows 窗体 (WinForms) 和 Windows Presentation Foundation (WPF)。

Version 5 of this (for .net 5.0 ) is the "Windows Desktop 5" that the documentation for the Registry class is talking about.此版本 5(用于.net 5.0 )是Registry类的文档所讨论的“Windows Desktop 5”。

This is further documented in the MSBuild reference for .NET Desktop SDK projects which is a这在.NET 桌面 SDK 项目MSBuild 参考中有进一步的记录,这是一个

reference for the MSBuild properties and items that you use to configure Windows Forms (WinForms) and Windows Presentation Foundation (WPF) projects with the .NET Desktop SDK.用于通过 .NET 桌面 SDK 配置 Windows 窗体 (WinForms) 和 Windows Presentation Foundation (WPF) 项目的 MSBuild 属性和项的参考。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM