Coo*_*ngs 5 c# hudson stylecop
我正在尝试为我们的新项目设置我们的Hundson Server for CI.一切运行正常,构建项目,单元测试和FxCop检查运行.但是当我尝试使用StyleCop检查代码时会发生错误.第一:我们使用MS VS 2010在C#中开发,在Hudson Server上安装了.Net 4.0和Windows SDK 7.1.
现在我已将StyleCop.Targets添加到我的SVN并将.cproj文件链接到该文件.如果我在VS2010中构建,除了StyleCop警告之外,每个都很好,但如果Hundson Server尝试构建项目,则会发生以下错误:
error MSB4062: The "StyleCopTask" task could not be loaded from the assembly
C:\Program Files (x86)\MSBuild\..\StyleCop 4.7\StyleCop.dll. Could not load file or
assembly 'Microsoft.Build.Utilities.v3.5, Version=3.5.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot
find the file specified. Confirm that the <UsingTask> declaration is correct,
that the assembly and all its dependencies are available, and that the task
contains a public class that implements Microsoft.Build.Framework.ITask.
Run Code Online (Sandbox Code Playgroud)
StyleCop.dll位于Hundson Server的路径中,有人可以告诉我我做错了什么吗?
小智 1
那应该解决它
| 归档时间: |
|
| 查看次数: |
2300 次 |
| 最近记录: |