开发者

How to install Microsoft.VisualStudio.Shell.dll on Client Computer

开发者 https://www.devze.com 2022-12-20 13:01 出处:网络
I am dealing with some code that won\'t install on client machines (NOT running Visual Studio) because is makes reference to VSConstants.S_OK, which is in Microsoft.VisualStudio.Shell.dll.Is ther开发者

I am dealing with some code that won't install on client machines (NOT running Visual Studio) because is makes reference to VSConstants.S_OK, which is in Microsoft.VisualStudio.Shell.dll. Is ther开发者_开发知识库e a redistributable that includes this, or do I need to have the code updated to use a different constant.


Microsoft.VisualStudio.Shell.dll is parenthetically not a redistributable component. You'll find a list of the ones you can redistribute in the redist.txt file in the Visual Studio install directory.

Getting rid of this particular dependency isn't hard. It is a COM HRESULT value, S_OK = 0. You can find those values listed in the WinError.h SDK header file. For VS2008, you'll find it in the c:\program files\microsoft sdks\windows\v6.0a\include. Earlier releases in the vc\PlatformSDK subdirectory of the VS install directory.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号