Skip to content

Commit c4ae66e

Browse files
authored
Add note that exposing COM components in C++/CLI projects is not supported (#43116)
1 parent 455d17b commit c4ae66e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/core/native-interop/expose-components-to-com.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,4 +125,6 @@ There is a fully functional [COM server sample](https://github.com/dotnet/sample
125125
126126
[Self-contained deployments](../deploying/index.md#publish-self-contained) of COM components are not supported. Only [framework-dependent deployments](../deploying/index.md#publish-framework-dependent) of COM components are supported.
127127

128+
Exposing COM components from [C++/CLI projects](/cpp/dotnet/dotnet-programming-with-cpp-cli-visual-cpp) via the [EnableComHosting property](../project-sdk/msbuild-props.md#enablecomhosting) is not supported.
129+
128130
Additionally, loading both .NET Framework and .NET Core into the same process does have diagnostic limitations. The primary limitation is the debugging of managed components as it is not possible to debug both .NET Framework and .NET Core at the same time. In addition, the two runtime instances don't share managed assemblies. This means that it isn't possible to share actual .NET types across the two runtimes and instead all interactions must be restricted to the exposed COM interface contracts.

0 commit comments

Comments
 (0)