无法编译 monocov (Mac OS x 10.7.4) [英] Can't get monocov to compile (Mac OS x 10.7.4)

查看:20
本文介绍了无法编译 monocov (Mac OS x 10.7.4)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在拼命寻找单声道中的覆盖实用程序.我已经编写了一些测试,但很可能有一些代码部分没有被我的测试所超越.几个星期以来,我一直在寻找一个覆盖程序,我可以将它与从我的 ASP.NET MVC 项目生成的 dll 一起使用.我遇到了 monocov 模块,我已经通过 here 下载了源代码!作为本页!告诉我.我将 Mono.Cecil.dll 复制到源目录(用于 monocov)并安装了 XCode 命令行工具.通过查看makefile,如果我键入make install",我应该会很好.它似乎编译了一些类,但随后开始吐出有关 Mono.Cecil.TypeReference 的错误.

I am desperately searching for a coverage utility within mono. I have written some tests but there are most likely some parts of the code that are not excersized by my tests. I have been searching for a few weeks now for a coverage program that I can use with my dll's that are generated from my ASP.NET MVC project. I came across the monocov module and I have downloaded the source over here! as this page! told me to. I copied Mono.Cecil.dll into the source directory (for monocov) and installed the XCode command line tools. By looking through the makefile i should be good if i type "make install". It seems to compile a few classes but then it starts spitting out errors about Mono.Cecil.TypeReference.

我已经用尽了我目前的知识所知道的一切,我需要休息一下......我可能会再写一些测试,让我暂时忘记这个问题,但我想把它发布出来来看看有没有人愿意帮帮我!

I have exhausted everything that my current knowledge knows to do and I need to take a breather... i'm probably going to write some more tests and let this escape my mind for a bit but I wanted to post it up here and see if there was anybody willing to help me out!

推荐答案

您需要一份 Cecil 0.6 的副本.由于整个 Mono 项目在过去 2 年中经历了很多变化,因此有点难以找到,但最后我检查了(2012 年 9 月 10 日),这里有一份来自作者个人博客的副本http://evain.net/blog/articles/2007/10/05/mono-cecil-0-6

You need a copy of Cecil 0.6. It is a bit harder to find as the entire Mono project has gone through a lot of changes over the past 2 years, but last I checked (10. Sept 2012) there is a copy available from the authors' personal blog here http://evain.net/blog/articles/2007/10/05/mono-cecil-0-6

例如,您可以选择 .tar.gz 版本.里面有3个文件.将这些放入 monocov 源目录.运行配置脚本.打开 makefile 并找到类似CFLAGS=-O2 -g"的行.附加到它,使其显示为CFLAGS=-O2 -g -m32".然后制作.

You can pick the .tar.gz version for instance. Inside, there are 3 files. Put these into the monocov source directory. Run the configure script. Open the makefile and find the line saying something like "CFLAGS=-O2 -g". Append to it so it reads "CFLAGS=-O2 -g -m32". Then make.

这篇关于无法编译 monocov (Mac OS x 10.7.4)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆