FlashDevelop ASMock 集成错误

发布于 2024-10-14 04:49:04 字数 1149 浏览 1 评论 0原文

我最近一直在尝试将 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 技术交流群。

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

发布评论

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

评论(1

半山落雨半山空 2024-10-21 04:49:04

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.

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