dotnet / dotnet/sdk

COM Hosting not supported for C++/CLR projects (.NET Core+)

Open
#44,168 15 comments 0 reactions 1 assignee Claimed by @baronfel View on GitHub
Area-NetSDK C++/CLI support
Dominant language
C#
Stars
3.2k
Forks
1.3k
PR merge metrics
PR metrics pending

Description

### Description

I've added
`True`
to my .vcxproj to expose a managed class (.NET 6.0) to COM, but the compiler seems that don't know how to generate the Com Hosting for C++/CLR projects.
I get the error "Could not copy the file xxx.comhost.dll because it was not found."

### Reproduction Steps

- Create a C++/CLR Library targeting .NET 6.0
- Add EnableComHosting to the project
- Compile

### Expected behavior

Compilation without errors and comhost.dll generated

### Actual behavior

Compilation error

### Regression?

_No response_

### Known Workarounds

_No response_

### Configuration

_No response_

### Other information

_No response_

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.