문제

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