Вопрос

An assembly in a project has a type marked with ComVisible(true).

When building (non-elevated), VS tries to register that DLL and fails:

Cannot register assembly "\path\to\foo.dll" - access denied. Please make sure you're running the application as administrator. Access to the registry key 'HKEY_CLASSES_ROOT\CLSID{FFC174A1-CC90-4E25-A3F6-C30B03368250}' is denied.

We don't really want the DLL registering on the build machines. We only want to register it when we install it for the end user.

So is it possible to build without registering the DLL?

Нет правильного решения

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top