Is it possible to build a .NET DLL with visible COM types without VS requiring a boost?

The node in the project has a type labeled ComVisible (true).

When building (without raising), VS tries to register this DLL and fails:

Unable to register assembly "\ path \ to \ foo.dll" - access denied. Make sure you use the application as an administrator. Access to the registry key "HKEY_CLASSES_ROOT \ CLSID {FFC174A1-CC90-4E25-A3F6-C30B03368250}" is denied.

We do not want the DLL to register on the build machines. We want to register it only when it is installed for the end user.

So is it possible to build without registering a DLL?

+8
visual-studio uac com elevation
source share
1 answer

So is it possible to build without registering a DLL?

Yes. In the project settings (right click, "Properties") in the "Assembly" section, the "Register for COM interaction" checkbox is selected.

+6
source share

All Articles