コード例 #1
0
 static void Main(string[] args)
 {
     var env = new Mock<DTE2>();
     var vsproject = new Mock<VSProject>();
     var project = new Mock<Project>();
     project.Setup(proj => proj.UniqueName).Returns("OpenEngSbMockProject");
     vsproject.Setup(proj => proj.Project).Returns(project.Object);
     OpenEngSbWizard wizard = new OpenEngSbWizard(env.Object, vsproject.Object);
     wizard.DoConfiguration();
     //wizard.DoSteps();
     //wizard.DownloadOpenEngSb();
     //wizard.DoBus();
     //wizard.DownloadBridge(true);
     //wizard.IncludeBridge();
 }
コード例 #2
0
        private void openBus()
        {
            Array activeProjects = _applicationObject.ActiveSolutionProjects as Array;

            if (activeProjects == null)
                return;

            if (activeProjects.Length < 0)
                return;

            Project project = (Project)activeProjects.GetValue(0);

            OpenEngSbWizard wizard = new OpenEngSbWizard(_applicationObject, (VSProject)project.Object);
            wizard.DoBus();
        }