private static bool CheckTfsPathProject(string tfsPath, string projectName)
{
if (tfsPath.EndsWith($"/{projectName}"))
return true;
const string prefix = "CnetContent.";
if (projectName.StartsWith(prefix))
{
var custom = projectName.Substring(prefix.Length);
if (tfsPath.EndsWith($"/{custom}"))
return true;
}
return false;
}