用depends发现缺了一堆API-MS-WIN什么的dll,网上查找是因为少了VC++2010,VC++2015等一系列,装好后仍然不行,原来这种错误并不是该原因导致的,也并不缺少那些dll(depends是静态的寻找依赖的dll,缺少的dll在运行中并不一定都需要),是因为c++ clr的.netFramwork版本与c#的没对应上所致. 解决办法: c++ clr编译的dll需要和你c#的.netFramwork版本对应上. 但是vs2013 c++ clr 默认4.0,怎么改 .net
Could not load file or assembly 'System.Data.SQLite.dll' or one of its dependencies. 找不到指定的模块. 错误提示如下: Could not load file or assembly 'System.Data.SQLite,Version=1.0.66.0,Culture=neutral,PublicKeyToken=db937bc2d44ff139' or one of its dependencies.