无法构建 LINQ IQueryable Toolkit (IQToolkit) 的测试项目 - 代码 9009

发布于 2024-10-17 15:06:55 字数 264 浏览 4 评论 0原文

我正在尝试使用 Visual Studio 2008 构建 LINQ IQueryable Toolkit 的测试项目,但它没有构建,因为它以“退出代码 9009”退出。

源代码位于:http://iqtoolkit.codeplex.com/releases/view/40005

我该如何解决这个问题?

I am trying to build the test project for LINQ IQueryable Toolkit with Visual Studio 2008, but it does not build because it exits with "exited with code 9009".

The source is available at: http://iqtoolkit.codeplex.com/releases/view/40005

How do I fix this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

誰認得朕 2024-10-24 15:06:55

我使用 Visual Studio 2010 构建它,并收到错误消息,指出我缺少 System.Data.SQLiteMySql.Data.MySqlClient 命名空间。因此,我首先要确保您的计算机上有这些 DLL,并且您已将对它们的适当引用添加到项目中。


完整的错误消息是:

命令
“C:\Users\Robert\Downloads\IQToolkit
v0.17b\Source\Test\CopyProviders.cmd
bin\调试\
C:\Users\Robert\Downloads\IQToolkit
v0.17b\Source\Test\" 退出并带有代码
9009。

C:\Users\Robert\Downloads\IQToolkit v0.17b\Source\Test\ 文件夹中的文件 CopyProviders.cmd 包含以下内容:

erase %2%1IQToolkit.Data.*.dll
CALL %2CopyProvider.cmd Access %1 %2
CALL %2CopyProvider.cmd SqlClient %1 %2
CALL %2CopyProvider.cmd SqlServerCe %1 %2
CALL %2CopyProvider.cmd MySqlClient %1 %2
CALL %2CopyProvider.cmd SQLite %1 %2 

CopyProvider.cmd 文件包含以下内容:

if exist %3..\IQToolkit.Data.%1\%2IQToolkit.Data.%1.dll xcopy /C /Y %3..\IQToolkit.Data.%1\%2IQToolkit.Data.%1.dll %3%2

这一切都是从预构建事件命令行触发的,可以是在 Test 项目的 Properties 对话框的 Build Events 部分中找到。它的内容如下:

$(ProjectDir)CopyProviders.cmd $(OutDir) $(ProjectDir)

要构建项目,您只需从“属性”对话框中删除此行,项目就会正常构建。

很明显,在构建过程中发生了一些文件复制,并且此文件复制与 IQToolkit 的测试过程有关。 IQToolkit 输出 DLL 似乎被复制到每个提供程序子目录中。如果您想运行测试套件,您可以手动复制此文件。

无论如何,这确实是一个小错误。我会让 IQToolkit 人员知道这一点。

I built it with Visual Studio 2010, and got error messages that say I am missing System.Data.SQLite and MySql.Data.MySqlClient namespaces. So I would first make sure you have the DLL's for those on your computer, and you have added the appropriate references to them to the project.


The complete error message is:

The command
"C:\Users\Robert\Downloads\IQToolkit
v0.17b\Source\Test\CopyProviders.cmd
bin\Debug\
C:\Users\Robert\Downloads\IQToolkit
v0.17b\Source\Test\" exited with code
9009.

The file CopyProviders.cmd in the folder C:\Users\Robert\Downloads\IQToolkit v0.17b\Source\Test\ contains the following:

erase %2%1IQToolkit.Data.*.dll
CALL %2CopyProvider.cmd Access %1 %2
CALL %2CopyProvider.cmd SqlClient %1 %2
CALL %2CopyProvider.cmd SqlServerCe %1 %2
CALL %2CopyProvider.cmd MySqlClient %1 %2
CALL %2CopyProvider.cmd SQLite %1 %2 

The CopyProvider.cmd file contains the following:

if exist %3..\IQToolkit.Data.%1\%2IQToolkit.Data.%1.dll xcopy /C /Y %3..\IQToolkit.Data.%1\%2IQToolkit.Data.%1.dll %3%2

This is all fired off from the Pre-build event command line, which can be found in the Build Events portion of the Properties dialog for the Test project. It reads as follows:

$(ProjectDir)CopyProviders.cmd $(OutDir) $(ProjectDir)

To get the project to build, you can just remove this line from the Properties dialog, and the project will build just fine.

It seems clear that some file copying takes place during the build process, and that this file copying has something to do with the test process for the IQToolkit. It seems that the IQToolkit output DLL is copied to each of the provider subdirectories. You can probably do this file copying manually, if you want to run the test suite.

In any case, it does appear to be a minor bug. I would let the IQToolkit folks know about it.

初见终念 2024-10-24 15:06:55

只需将事件更改为:

"$(ProjectDir)CopyProviders.cmd" "$(OutDir)" "$(ProjectDir)"

即可解决此问题。

Just change the event to:

"$(ProjectDir)CopyProviders.cmd" "$(OutDir)" "$(ProjectDir)"

This can fix this problem.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文