0

iam creating setup file in ado.net but whenever i build my project it is give me 'oledb32.dll' should be excluded because its source file 'C:\Program Files\Common Files\System\Ole DB\oledb32.dll' is under Windows System File Protection error so that's why i download in net and try to import that dll in my project but this file cannot import detected dependencies folder ..oledb32.dll file is important for show patient details in excel format so can you all expert give me any suggestion or advice

4

1 回答 1

0

我也遇到了这个问题,直到现在才找到具体的答案。

我正在使用开发框,通过 SVN 签入代码,并运行 CruiseControl.NET 来执行 devenv.exe 以自动构建项目(我不使用 MSBuild,因为微软尚未实现构建安装项目的解决方案,我认为这也是您正在使用的)。安装项目可以在开发盒上正常构建,但在构建服务器上它不断出现同样的错误。

MSDN 的解释可以在这里找到,描述性不是很强,但这基本上是需要做的。更具体的答案可以在这里找到。基本上你必须在你的构建服务器上打开 VS 并进入并排除oledb32.dll (和任何其他问题文件),瞧,它最终构建并创建了 MSI 文件!希望这对您有所帮助。

于 2014-02-05T22:03:13.467 回答