关于c#:在.net项目中添加对msvcr90.dll的引用 | 珊瑚贝

add reference to msvcr90.dll in .net project


我们的一位自托管客户,没有公开安装 msvcr90.dll。为了使我们的应用程序在他们的机器上运行,每次部署后,我们手动在我们的应用程序文件夹中添加 msvcr90.dll 和 Microsoft.VC90.crt 文件。这需要重新启动机器。有没有办法可以在项目中添加这两个文件并使我的项目引用这些文件?我尝试在项目中添加 msvcr.dll,但出现以下错误:

“无法添加对 msvcr90.dll 的引用。请确保该文件可访问,并且它是有效的程序集或 COM 组件。”


我之前也遇到过这个问题,但我所做的只是,将项目设置为以管理员帐户运行,并在项目内部,我手动编写代码以将 dll 复制到 system32 文件夹中,它工作正常。

所有 DLL 都不能添加到 VS 项目中。这取决于什么框架,DLL 的版本来自什么。如果不符合要求,则 VS 项目将不接受。


来源:https://www.codenong.com/38988499/

微信公众号
手机浏览(小程序)

Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(): Failed to enable crypto in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_8864.jpg): failed to open stream: operation failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57
0
分享到:
没有账号? 忘记密码?