public CsProject(string userName) { this.userName = userName.Replace(" ", ""); starterKit = "EmptyApp"; SetProjectName(); Framework = DeltaEngineFramework.OpenTK; BaseDirectory = MyDocumentsExtensions.GetVisualStudioProjectsFolder(); }
private string GetPathToVisualStudioTemplateZip(string templateName) { var currentPath = GetVstFromCurrentWorkingDirectory(); if (File.Exists(currentPath)) { return(currentPath); //ncrunch: no coverage } var solutionPath = GetVstFromSolution(); if (File.Exists(solutionPath)) { return(solutionPath); //ncrunch: no coverage } var environmentPath = GetVstFromEnvironmentVariable(); return(File.Exists(environmentPath) ? environmentPath : MyDocumentsExtensions.GetVisualStudioDeltaEngineTemplateZip(templateName)); }