CCNet.Build.Reconfigure.BasicProjectPage.CheckTfsPathProject C# (CSharp) Method

CheckTfsPathProject() private static method

private static CheckTfsPathProject ( string tfsPath, string projectName ) : bool
tfsPath string
projectName string
return bool
		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;
		}