dotnet / dotnet/docs

Unclear wording about a breaking change in exposing classes to COM

Open
#23,476 3 comments 0 reactions 0 assignees View on GitHub
dotnet-fundamentals/svc
Dominant language
No language data
Stars
4.8k
Forks
6.1k
Avg merge
15h 21m
Merged PRs (30d)
370

Description

At the end of "Create the library" section there's this paragraph marked as an important note:

>Important
Unlike in .NET Framework, .NET Core requires you to specify the CLSID of any class you want to be activatable via COM.

What is it trying to say? I have some experience exposing classes to COM in .NET Framework and only classes marked `ComVisible` are exposed. This paragraph says something very similar. What's the difference?

---
#### Document Details

⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*

* ID: e0842844-005f-5004-022d-fce7a82daff8
* Version Independent ID: 88ddeba8-3b31-95f4-26b2-4a12a7313b47
* Content: [Exposing .NET Core components to COM](https://docs.microsoft.com/en-us/dotnet/core/native-interop/expose-components-to-com)
* Content Source: [docs/core/native-interop/expose-components-to-com.md](https://github.com/dotnet/docs/blob/main/docs/core/native-interop/expose-components-to-com.md)
* Product: **dotnet-fundamentals**
* GitHub Login: @jkoritzinsky
* Microsoft Alias: **jekoritz**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.