VS2015的Metadata file 'xxx.dll' could not be found错误及其后续

本文记录了一次使用VS2015编译过程中遇到的DLL找不到及生成失败的问题,并分享了最终通过替换旧版本项目文件解决问题的过程。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

VS2015使用过程中,某次编译时出现了 “Metadata file 'xxx.dll' could not be found…………  ”,这样的错误,在网上找到了将项目一个一个重新复选生成的办法。试过了,这个办法不灵。

后来决定根据那些 not be found 的DLL,单独一个一个项目生成,结果出现了 生成失败 的错误。想了想,是不是DLL有问题,而且VS2015也有问题一直无法编译?后决定从 Release 文件夹拷贝一份过来试试。F5后又出现了 “VS2015 你正在调试XXXX.dll的发布版本…………”的错误。这下无论在网上新找的办法还是自己反复重新编译都没法调试了。断点还打不起来。

耐下心来,重新拿了以前某个正常的版本,运行了一下,发现是好的,没错误。而当前错误的系统,就是最先某个DLL无法编译通过而导致后续DLL都无法编译通过。遂决定将之前好的版本的某项目下的csproj等文件拷贝过来覆盖在现有系统上,后重新编译测试,通过了。看来VS2015的项目文件也会有各种各样的BUG啊。以后得多多总结了。

Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple Collecting torchcam Using cached https://pypi.tuna.tsinghua.edu.cn/packages/9a/35/4709f53016e22be6843022991feaf73bab2f41ea96800a4f9a830af6011d/torchcam-0.4.0-py3-none-any.whl (46 kB) Requirement already satisfied: torch<3.0.0,>=2.0.0 in h:\anaconda\envs\work1_tea\lib\site-packages (from torchcam) (2.7.1) Collecting numpy<2.0.0,>=1.17.2 (from torchcam) Using cached https://pypi.tuna.tsinghua.edu.cn/packages/65/6e/09db70a523a96d25e115e71cc56a6f9031e7b8cd166c1ac8438307c14058/numpy-1.26.4.tar.gz (15.8 MB) Installing build dependencies ... done Getting requirements to build wheel ... done Installing backend dependencies ... done Preparing metadata (pyproject.toml) ... error error: subprocess-exited-with-error × Preparing metadata (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [21 lines of output] + H:\anaconda\envs\work1_tea\python.exe C:\Users\bhl16\AppData\Local\Temp\pip-install-tscbct44\numpy_328a9d197ece4fd6a905a75cbd451254\vendored-meson\meson\meson.py setup C:\Users\bhl16\AppData\Local\Temp\pip-install-tscbct44\numpy_328a9d197ece4fd6a905a75cbd451254 C:\Users\bhl16\AppData\Local\Temp\pip-install-tscbct44\numpy_328a9d197ece4fd6a905a75cbd451254\.mesonpy-5q59vol4 -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=C:\Users\bhl16\AppData\Local\Temp\pip-install-tscbct44\numpy_328a9d197ece4fd6a905a75cbd451254\.mesonpy-5q59vol4\meson-python-native-file.ini The Meson build system Version: 1.2.99 Source dir: C:\Users\bhl16\AppData\Local\Temp\pip-install-tscbct44\numpy_328a9d197ece4fd6a905a75cbd451254 Build dir: C:\Users\bhl16\AppData\Local\Temp\pip-install-tscbct44\numpy_328a9d197ece4fd6a905a75cbd451254\.mesonpy-5q59vol4 Build type: native build Project name: NumPy Project version: 1.26.4 WARNING: Failed to activate VS environment: Could not parse vswhere.exe output ..\meson.build:1:0: ERROR: Unknown compiler(s): [['icl'], ['cl'], ['cc'], ['gcc'], ['clang'], ['clang-cl'], ['pgcc']] The following exception(s) were encountered: Running `icl ""` gave "[WinError 2] 系统找不到指定的文件。" Running `cl /?` gave "[WinError 2] 系统找不到指定的文件。" Running `cc --version` gave "[WinError 2] 系统找不到指定的文件。" Running `gcc --version` gave "[WinError 2] 系统找不到指定的文件。" Running `clang --version` gave "[WinError 2] 系统找不到指定的文件。" Running `clang-cl /?` gave "[WinError 2] 系统找不到指定的文件。" Running `pgcc --version` gave "[WinError 2] 系统找不到指定的文件。" A full log can be found at C:\Users\bhl16\AppData\Local\Temp\pip-install-tscbct44\numpy_328a9d197ece4fd6a905a75cbd451254\.mesonpy-5q59vol4\meson-logs\meson-log.txt [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed × Encountered error while generating package metadata. ╰─> See above for output. note: This is an issue with the package mentioned above, not pip. hint: See above for details.
最新发布
07-31
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值