Пример #1
0
 public CsProject(string userName)
 {
     this.userName = userName.Replace(" ", "");
     starterKit    = "EmptyApp";
     SetProjectName();
     Framework     = DeltaEngineFramework.OpenTK;
     BaseDirectory = MyDocumentsExtensions.GetVisualStudioProjectsFolder();
 }
Пример #2
0
        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));
        }