无法构建 LINQ IQueryable Toolkit (IQToolkit) 的测试项目 - 代码 9009
我正在尝试使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我使用 Visual Studio 2010 构建它,并收到错误消息,指出我缺少
System.Data.SQLite
和MySql.Data.MySqlClient
命名空间。因此,我首先要确保您的计算机上有这些 DLL,并且您已将对它们的适当引用添加到项目中。完整的错误消息是:
C:\Users\Robert\Downloads\IQToolkit v0.17b\Source\Test\
文件夹中的文件CopyProviders.cmd
包含以下内容:CopyProvider.cmd
文件包含以下内容:这一切都是从
预构建事件命令行
触发的,可以是在Test
项目的Properties
对话框的Build Events
部分中找到。它的内容如下:要构建项目,您只需从“属性”对话框中删除此行,项目就会正常构建。
很明显,在构建过程中发生了一些文件复制,并且此文件复制与 IQToolkit 的测试过程有关。 IQToolkit 输出 DLL 似乎被复制到每个提供程序子目录中。如果您想运行测试套件,您可以手动复制此文件。
无论如何,这确实是一个小错误。我会让 IQToolkit 人员知道这一点。
I built it with Visual Studio 2010, and got error messages that say I am missing
System.Data.SQLite
andMySql.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 file
CopyProviders.cmd
in the folderC:\Users\Robert\Downloads\IQToolkit v0.17b\Source\Test\
contains the following:The
CopyProvider.cmd
file contains the following:This is all fired off from the
Pre-build event command line
, which can be found in theBuild Events
portion of theProperties
dialog for theTest
project. It reads as follows: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.
只需将事件更改为:
即可解决此问题。
Just change the event to:
This can fix this problem.