Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is the first PR to bring cswinmd over into this repo.
Description
CSWinMD is a tool to generate WinMD files from C#/WinRT .cs files (technically not valid C#, but C#-ish).
This can be used as a replacement to MIDL for producing WinMD files; instead of writing .idl, you'd write this C# syntax in your C++ project, reference the cswinmd nuget, and it would run cswinmd to generate the winmd from your C# files, and then pass the winmd to cppwinrt for it to generate component headers/sources.
Usage
Current state and future work
This is not yet a complete implementation (it suffers from the same expressivity limitations that C#/WinRT currently has, like no support for unsealed classes, etc.) however it starts laying the groundwork for a more complete solution.
Included in this:
For more context (internal to msft only) see my talk https://aka.ms/cswinmd/talk_2021