WinRT/C# component requirements (does it need .NET?)

RW 21 Reputation points
2022-10-19T14:20:54.82+00:00

Hi,

I just came across several links that discuss how to author WinRT components using a CSharp library.

Source (see below) : authoring.md, authoring, use-csharp-component-from-cpp-winrt

It states that I can write a C# library and package it into a WinRT component. However, it's not clear whether having .NET is a requirement.
In one link, it states .NET is required. In another, .NET is recommended and another link says its supported.

In my scenario, I have created a Csharp library class (that also has event/delegate calls) that does not use .NET. The goal is to consume it in a WinRT/C++ UWP app.
Will this still be possible?

Developer technologies | Universal Windows Platform (UWP)
Developer technologies | .NET | Other
Developer technologies | C#
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 78,086 Reputation points Volunteer Moderator
    2022-10-19T16:20:15.853+00:00

    there is a restricted runtime support for UWP. for supported libraries see :

    https://learn.microsoft.com/en-us/dotnet/api/?view=dotnet-uwp-10.0&preserve-view=true


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.