什么是Windows 11的.NET运行时标识符

发布于 2025-01-19 09:28:30 字数 944 浏览 2 评论 0 原文

众所周知,我们通过在发布时提及运行时标识符来发布针对特定平台的独立应用程序。对于那些不知道什么是独立应用程序的人来说,更多的是在这里 -

过去,我成功地发布了针对Windows 7、8.1、10的应用程序,使用

我尝试的事情 -

  • 尝试使用WIN11 -X64,因为这与现有Windows X64骑行有关。但是,构建失败的错误“未识别运行时标识符”
  • 安装了最新版本的.NET 6,希望这将解决问题,但事实并非如此。
  • 通过Microsoft Docs和GitHub问题列表进行搜索,但无论Windows 11支持是否存在,都找不到任何可以得出的结论。或者是正在进行的工作。
  • 找到没有提及Windows11。
  • 提交了一个问题以更新文档 - https: //github.com/dotnet/docs/issues/28885 。但是不确定什么时候会引起注意。

请帮助我了解有关此信息的任何信息。

As you all know .NET let's us publish self-contained applications targeting a specific platform by mentioning the Runtime Identifier at the time of publish. For those of you who are not aware what a self-contained application is, more about it is here -

In the past I have successfully published such applications targeting windows 7, 8.1, 10 using the Runtime Identifiers mentioned in the .NET RID catalog

Question is, what is the RID for publishing an application targeting windows 11 ?

Things I tried -

  • Tried using win11-x64 as this is line with existing windows x64 RIDs. But build failed with error "Runtime identifier not recognized"
  • Installed latest version of .NET 6 hoping this will solve the issue but it didn't.
  • Searched through Microsoft docs and github issue list but couldn't find anything to come to the conclusion whether windows 11 support is there or not. Or if it's a work in progress.
  • Found latest and complete version of RIDs has no mention of windows 11.
  • Submitted an issue to update the docs - https://github.com/dotnet/docs/issues/28885. But not sure when this will get attention.

Please help me with any information you have regarding this.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

画中仙 2025-01-26 09:28:30

已经讨论了 github上的其他地方。

目前的答案似乎是尚未添加这些内容,并且不会添加鉴于API级别的Windows 10和Windows 11之间几乎没有区别。

This has been discussed elsewhere on GitHub.

The answer at present appears to be that these have not been added and will not be added given there is little or no difference between Windows 10 and Windows 11 at an API level.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文