microsoft / microsoft/CsWinRT

Proposal: Generate GUID for projected runtimeclasses via attribute

Open
#2,000 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
665
Forks
134
Avg merge
1d 3h
Merged PRs (30d)
32

Description

Summary

Projection should generate a Guid member on runtimeclasses annotated with [ComOutOfProcClsId(...)] with its value

  1. SDK annotates the runtimeclass with an attribute, and
  2. cswinrt should read from that attribute to generate a Guid member so that you can say typeof(theRuntimeClass).GUID to refer to the CLSID
Rationale

Needed to make OOP APIs usable without additional helper libraries

Important Notes

No response

Open Questions

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how CsWinRT projects runtimeclasses and how it reads the [ComOutOfProcClsId(...)] attribute. Define the generation path needed for a Guid member, then verify that typeof(theRuntimeClass).GUID exposes the annotated CLSID for OOP APIs.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
desktop
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.