我想在自定义环境中托管 StyleCop,SDK 中提供的示例代码使用了这个foreach(string myProject in this.myProjects)
. String
没有像Path.GetHashCode()
and这样的属性FilesToAnalyze
,有谁知道是什么this.myProjects
?
List<CodeProject> projects = new List<CodeProject>();
// what is this.myProject?
foreach (string myProject in this.myProjects)
{
CodeProject project = new CodeProject(
myProject.Path.GetHashCode(), myProject.Path, configuration);
// Add each source file to this project.
foreach (string sourceFilePath in myProject.FilesToAnalyze)
{
console.Core.Environment.AddSourceCode(project, sourceFilePath, null);
}
projects.Add(project);
}