FlashDevelop ASMock 集成错误
我最近一直在尝试将 ASMock 1.0 与 ASUnit4.0 一起使用(我从 ASMock 网站上获取了它们的软件包)并添加了两个 .swc 组件(asmock-v1.0.swc 和 asmock-v1.0 -asunit-v4.0.swc) 到我的 FlashDevelop 项目的 lib 文件夹。然后我右键单击每个将其添加到库中。最后,我在 Project -> 中添加了“-includes asmock.integration.asunit.ASMockRunner”参数属性-> “其他编译器选项”字段中的编译器选项。
当我构建项目时,我收到以下错误:
...\lib\asmock-v1.0-asunit-v4.0.swc(asmock.integration.asunit:ASMockRunner) 错误:未找到类型或不是编译时常量:[asunit.framework]::IRunner。
...\lib\asmock-v1.0-asunit-v4.0.swc(asmock.integration.asunit:ASMockMetadataTools) 错误:未找到类型或不是编译时常量:反射。
...\lib\asmock-v1.0-asunit-v4.0.swc(asmock.integration.asunit:ASMockMetadataTools) 错误:未找到类型或不是编译时常量:ReflectionVariable。
...\lib\asmock-v1.0-asunit-v4.0.swc(asmock.integration.asunit:ASMockMetadataTools) 错误:未找到类型或不是编译时常量:ReflectionVariable。
...\lib\asmock-v1.0-asunit-v4.0.swc(asmock.integration.asunit:ASMockMetadataTools) 错误:未找到类型或不是编译时常量:ReflectionVariable。
...\lib\asmock-v1.0-asunit-v4.0.swc(asmock.integration.asunit:ASMockMetadataTools) 错误:未找到类型或不是编译时常量:ReflectionMetaData。
我还忘了补充一点,FlashDevelop 项目是一个 Actionscript 项目。
如果有人知道如何修复这些错误,我将不胜感激!
I've recently been trying to use ASMock 1.0 with ASUnit4.0 (I grabbed the package with both of them together off of the ASMock website) and added both .swc components (asmock-v1.0.swc and asmock-v1.0-asunit-v4.0.swc) to the lib folder of my FlashDevelop project. I then right-clicked on each of them added it to the library. Lastly, I added the "-includes asmock.integration.asunit.ASMockRunner" argument in the Project -> Properties -> Compiler Options within the "Additional Compiler Options" field.
When I build the project I receive these errors:
...\lib\asmock-v1.0-asunit-v4.0.swc(asmock.integration.asunit:ASMockRunner)
Error: Type was not found or was not a compile-time constant: [asunit.framework]::IRunner.
...\lib\asmock-v1.0-asunit-v4.0.swc(asmock.integration.asunit:ASMockMetadataTools)
Error: Type was not found or was not a compile-time constant: Reflection.
...\lib\asmock-v1.0-asunit-v4.0.swc(asmock.integration.asunit:ASMockMetadataTools)
Error: Type was not found or was not a compile-time constant: ReflectionVariable.
...\lib\asmock-v1.0-asunit-v4.0.swc(asmock.integration.asunit:ASMockMetadataTools)
Error: Type was not found or was not a compile-time constant: ReflectionVariable.
...\lib\asmock-v1.0-asunit-v4.0.swc(asmock.integration.asunit:ASMockMetadataTools)
Error: Type was not found or was not a compile-time constant: ReflectionVariable.
...\lib\asmock-v1.0-asunit-v4.0.swc(asmock.integration.asunit:ASMockMetadataTools)
Error: Type was not found or was not a compile-time constant: ReflectionMetaData.
I also forgot to add that the FlashDevelop project is an Actionscript Project.
If anyone has any idea on how to fix these errors, I'd be greatly appreciated!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
AsUnit 4 支持是在 Beta 版发布之前添加的,因此 API 看起来已经发生了变化。我会调查一下。看起来这个问题看到了类似的东西。
AsUnit 4 support was added before it left beta, so it looks like the APIs have changed. I'll have a look into it. It looks like this question is seing something similar.