Home > OS >  What is .NET Runtime Identifier for Windows 11
What is .NET Runtime Identifier for Windows 11

Time:04-07

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.

CodePudding user response:

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.

  • Related