admin管理员组文章数量:1345325
I develop some Outlook AddIn in VB.NET in Visual Studio 2019 (needed for backward compatibility) and therefore, the IDE is writing and modifying Registry keys in HKEY_CLASSES_ROOT, HKEY_LOCAL_MACHINE and others(?).
So I used to run Visual Studio as Administrator. But this is interferring badly with my Cygwin installation with git and makefiles as all files become owned by Administrator and therefore are no longer fully accessible by the Cygwin shell and the normal login-user.
I tried with a manifest file for devenv.exe for getting higher privileges under the regular user, but it was ignored by the IDE (living at the same folder, no clue why it was completely ignored).
I tried giving full access to my user for the above registry entry points, but it still does not work.
How can I solve my issue? Either let Visual Studio run as Administrator but do not change files ownership and permissions or run Visual Studio as normal user and grant full access to the registry?
Error is:
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(4795,5):
error MSB3213:
Cannot register type library "C:\git\outlook_addin\src\bin\regifyOLAddIn.tlb".
Error accessing the OLE registry.
(Exception from HRESULT: 0x8002801C (TYPE_E_REGISTRYACCESS))
Any hints on that?
本文标签: windowsAllow Visual Studio 2019 to access registry without running as AdministratorStack Overflow
版权声明:本文标题:windows - Allow Visual Studio 2019 to access registry without running as Administrator? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1743786449a2538771.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论