Skip to content

NETSDK1149#24892

Merged
tdykstra merged 4 commits intodotnet:mainfrom
tdykstra:netsdk1149
Jun 29, 2021
Merged

NETSDK1149#24892
tdykstra merged 4 commits intodotnet:mainfrom
tdykstra:netsdk1149

Conversation

@tdykstra
Copy link
Copy Markdown
Contributor

@tdykstra tdykstra commented Jun 28, 2021

Fixes #24891

File Type File Name Published Url
Content docs/core/tools/sdk-errors/netsdk1149.md https://review.docs.microsoft.com/en-us/dotnet/core/tools/sdk-errors/netsdk1149?branch=pr-en-us-24892

Copy link
Copy Markdown
Contributor

@luisquintanilla luisquintanilla left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other than the link not working, looks good to me.


> *\<Component name>* cannot be referenced because it uses built-in support for WinRT, which is no longer supported in .NET 5 and higher. An updated version of the component supporting .NET 5 is needed.

You can resolve this error by changing the application's Target Framework Moniker (TFM). For more information, see [Call Windows Runtime APIs in desktop apps](/windows/apps/desktop/modernize/desktop-to-uwp-enhance).
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The link didn't work for me in preview, it might just be because it was coming from the review subdomain though

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes,, that's the reason -- if you copy and paste it on the end of "docs.microsoft.com", it works.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should clarify that this is the way to resolve the error if the developer is calling Windows Runtime APIs. It's also possible they get this error when referencing a 3rd party WinRT component, and in this case they will need an updated version of the component supporting .NET 5, which can be generated using C#/WinRT: https://docs.microsoft.com/en-us/windows/uwp/csharp-winrt/

Copy link
Copy Markdown
Contributor

@adegeo adegeo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, one suggestion

Co-authored-by: Andy (Steve) De George <67293991+adegeo@users.noreply.github.com>
@tdykstra tdykstra merged commit 18607fe into dotnet:main Jun 29, 2021
@tdykstra tdykstra deleted the netsdk1149 branch June 29, 2021 19:34
Youssef1313 pushed a commit to Youssef1313/docs that referenced this pull request Jul 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Document NETSDK1149

5 participants