FxCop Nant 任务错误:创建文件集时出错
每当我运行 fxcop nant 任务时,我都会收到以下错误。
Error creating FileSet.有谁知道可能是什么原因?
谢谢,
萨钦
I am getting following error whenever I run fxcop nant task.
Error creating FileSet.
Does anybody know what could be the reason?
Thanks,
Sachin
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我明白了问题背后的原因。最近我下载了最新的 NantContrib 项目的 Binary Zip。下载zip后,我将其解压,但没有解锁。由于我使用的是 Windows Server 2008,因此从 zip 中提取的所有程序集都被阻止。 FxCop nant 任务在 NAnt.Contrib.Tasks.dll(已锁定)中定义。 FxCop 任务需要 IO 权限才能在计算机上保存报告。由于文件被阻止,fxcop 任务由于缺乏 IO 权限而引发异常。
为了解决这个问题,我只是解锁了 zip 并重新提取 NantContrib 文件。此后一切正常。
谢谢索纳!!!抱歉没有说得那么具体:)
谢谢,
萨钦·P
I got the reason behind the issue. Recently I had downloaded Binary Zip of latest NantContrib project. After downloading the zip, I extracted it without unblocking. As I am using Windows Server 2008, all assemblies extracted from the zip were blocked. The FxCop nant task is defined in NAnt.Contrib.Tasks.dll(which was locked). FxCop task needs IO permission to save report on the machine. Since the file were blocked, fxcop task was throwing exception due to lack of IO permissions.
To resolve this, I just unblocked the zip and re-extracted the NantContrib files. Thereafter everything worked fine.
Thanks Soner!!! Sorry about not being so specific :)
Thanks,
Sachin P