CCNet.Build.Common.Util.ProjectNameToLocalName C# (CSharp) Метод

ProjectNameToLocalName() публичный статический Метод

Gets local name used for project files and folders. It is a project name where we omit some prefixes, like "CnetConent." for example.
public static ProjectNameToLocalName ( string projectName ) : string
projectName string
Результат string
		public static string ProjectNameToLocalName(string projectName)
		{
			const string prefix = "CnetContent.";

			if (!projectName.StartsWith(prefix))
				return projectName;

			return projectName.Substring(prefix.Length);
		}