没有任何扩展?
只需编写一段代码......最简单......我发现通过代码编辑项目文件非常容易......
private static List<string> FindAllRefrences(ref int ctr, string dir, string projectToSearch)
{
List<string> refs = new List<string>();
foreach (var projFile in Directory.GetFiles(dir, "*.csproj", SearchOption.AllDirectories))
{
if (projFile.IndexOf(projectToSearch, StringComparison.OrdinalIgnoreCase) >= 0)
continue;
//var t = false;
var lines = File.ReadAllLines(projFile);
foreach (var line in lines)
{
if (line.IndexOf(projectToSearch, StringComparison.OrdinalIgnoreCase) >= 0)
{
ctr++;
refs.Add(projFile);
break;
}
}
}
return refs;
}