public void AddProject(AbstractProject project)
        {
            project.VisualStudioProject = _projectFactory.CreateAndAddToWorkspace(project.ProjectSystemName, project.Language);
            project.UpdateVisualStudioProjectProperties();

            _typeScriptProjects[project.Id] = project;
        }
Пример #2
0
        public void AddProject(AbstractProject project)
        {
            var creationInfo = new VisualStudioProjectCreationInfo
            {
                AssemblyName = project.AssemblyName,
                FilePath     = project.ProjectFilePath,
                Hierarchy    = project.Hierarchy,
                ProjectGuid  = project.Guid,
            };

            project.VisualStudioProject = _projectFactory.CreateAndAddToWorkspace(project.ProjectSystemName, project.Language, creationInfo);
            project.UpdateVisualStudioProjectProperties();

            _typeScriptProjects[project.Id] = project;
        }
        public void AddProject(AbstractProject project)
        {
            if (_projectFactory != null)
            {
                var creationInfo = new VisualStudioProjectCreationInfo
                {
                    AssemblyName = project.AssemblyName,
                    FilePath     = project.ProjectFilePath,
                    ProjectGuid  = project.Guid,
                };
                project.VisualStudioProject = _projectFactory.CreateAndAddToWorkspace(project.ProjectSystemName, project.Language, creationInfo);
                project.UpdateVisualStudioProjectProperties();
            }
            else
            {
                // We don't have an ID, so make something up
                project.ExplicitId = ProjectId.CreateNewId(project.ProjectSystemName);
                Workspace.OnProjectAdded(ProjectInfo.Create(project.ExplicitId, VersionStamp.Create(), project.ProjectSystemName, project.ProjectSystemName, project.Language));
            }

            _projects[project.Id] = project;
        }