Exemplo n.º 1
0
        public BasicBuild(VisualStudioInstanceFactory instanceFactory)
        {
            _visualStudio = instanceFactory.GetNewOrUsedInstance(SharedIntegrationHostFixture.RequiredPackageIds);

            _visualStudio.Instance.SolutionExplorer.CreateSolution(nameof(BasicBuild));
            _visualStudio.Instance.SolutionExplorer.AddProject("TestProj", WellKnownProjectTemplates.ConsoleApplication, LanguageNames.VisualBasic);
        }
Exemplo n.º 2
0
        public CSharpBuild(VisualStudioInstanceFactory instanceFactory)
        {
            _visualStudio = instanceFactory.GetNewOrUsedInstance();

            var solution = _visualStudio.Instance.SolutionExplorer.CreateSolution(nameof(CSharpBuild));
            var project = solution.AddProject("TestProj", ProjectTemplate.ConsoleApplication, ProjectLanguage.CSharp);
        }
Exemplo n.º 3
0
        public CSharpBuild(VisualStudioInstanceFactory instanceFactory)
        {
            _visualStudio = instanceFactory.GetNewOrUsedInstance();

            _visualStudio.Instance.SolutionExplorer.CreateSolution(nameof(CSharpBuild));
            _visualStudio.Instance.SolutionExplorer.AddProject("TestProj", WellKnownProjectTemplates.ConsoleApplication, LanguageNames.CSharp);
        }
Exemplo n.º 4
0
        public CSharpInteractiveDemo(VisualStudioInstanceFactory instanceFactory)
        {
            _visualStudio = instanceFactory.GetNewOrUsedInstance();

            _interactiveWindow = _visualStudio.Instance.CSharpInteractiveWindow;

            _interactiveWindow.ShowAsync().GetAwaiter().GetResult();
            _interactiveWindow.ResetAsync().GetAwaiter().GetResult();
        }
Exemplo n.º 5
0
        public CSharpInteractiveDemo(VisualStudioInstanceFactory instanceFactory)
        {
            _visualStudio = instanceFactory.GetNewOrUsedInstance();

            _interactiveWindow = _visualStudio.Instance.CSharpInteractiveWindow;
            _interactiveWindow.Initialize();

            _interactiveWindow.ShowWindow();
            _interactiveWindow.Reset();
        }
        public CSharpAutomaticBraceCompletion(VisualStudioInstanceFactory instanceFactory)
        {
            _visualStudio = instanceFactory.GetNewOrUsedInstance();

            _solution = _visualStudio.Instance.SolutionExplorer.CreateSolution(nameof(CSharpAutomaticBraceCompletion));
            _project = _solution.AddProject("TestProj", ProjectTemplate.ClassLibrary, ProjectLanguage.CSharp);

            _workspace = _visualStudio.Instance.Workspace;
            _workspace.UseSuggestionMode = false;

            _editorWindow = _visualStudio.Instance.EditorWindow;
        }
Exemplo n.º 7
0
 protected AbstractIntegrationTest(VisualStudioInstanceFactory instanceFactory)
 {
     VisualStudio = instanceFactory.GetNewOrUsedInstance(SharedIntegrationHostFixture.RequiredPackageIds);
 }