149 references to AddProject
IdeCoreBenchmarks (4)
FormatterBenchmarks.cs (1)
50.AddProject(projectId, "ProjectName", "AssemblyName", LanguageNames.CSharp)
ProjectOperationBenchmarks.cs (1)
66solution = solution.AddProject(projectId, name, name, LanguageNames.CSharp);
RenameBenchmarks.cs (1)
44.AddProject(projectId, "ProjectName", "AssemblyName", LanguageNames.CSharp)
SwitchStatementBenchmarks.cs (1)
68.AddProject(projectId, "ProjectName", "AssemblyName", LanguageNames.CSharp)
Microsoft.AspNetCore.Analyzer.Testing (2)
DiagnosticProject.cs (1)
43.AddProject(projectId, TestProjectName, TestProjectName, LanguageNames.CSharp);
DiagnosticVerifier.cs (1)
162Solution = Solution.AddProject(projectId, TestProjectName, TestProjectName, LanguageNames.CSharp)
Microsoft.AspNetCore.Components.Analyzers.Tests (1)
Helpers\DiagnosticVerifier.Helper.cs (1)
153.AddProject(projectId, TestProjectName, TestProjectName, language)
Microsoft.AspNetCore.Components.SdkAnalyzers.Tests (1)
Helpers\DiagnosticVerifier.Helper.cs (1)
153.AddProject(projectId, TestProjectName, TestProjectName, language)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
ExtractMethod\ExtractMethodTests.cs (1)
11215var project = solution.AddProject(projectId, "Project", "Project.dll", LanguageNames.CSharp).GetProject(projectId);
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (6)
CodeGeneration\AbstractCodeGenerationTests.cs (1)
32.AddProject(projectId, languageName, $"{languageName}.dll", languageName).GetRequiredProject(projectId);
CodeGeneration\CodeGenerationTests.cs (1)
633.AddProject(projectId, "GenerationSource", "GenerationSource", TestContext.GetLanguage(symbolSource))
EditAndContinue\EditAndContinueLanguageServiceTests.cs (1)
245AddProject(projectId, "test", "test", LanguageNames.CSharp).
MetadataAsSource\AbstractMetadataAsSourceTests.cs (1)
78.AddProject(projectId, "Metadata", "Metadata", LanguageNames.CSharp).GetProject(projectId)
MetadataAsSource\MetadataAsSourceTests.cs (2)
1727var project = context.CurrentSolution.AddProject(projectId, "ProjectB", "ProjectB", LanguageNames.CSharp).GetProject(projectId) 1741var project = context.CurrentSolution.AddProject(projectId, "ProjectB", "ProjectB", LanguageNames.VisualBasic).GetProject(projectId)
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (1)
Simplification\ParameterSimplificationTests.vb (1)
20Dim project = solution.AddProject(projId, "Project", "Project.dll", LanguageNames.CSharp) _
Microsoft.CodeAnalysis.Features.UnitTests (3)
EditAndContinue\EditAndContinueWorkspaceServiceTests.cs (1)
919AddProject(projectId, "test", "test", LanguageNames.CSharp).
EditAndContinue\RemoteEditAndContinueServiceTests.cs (2)
79.AddProject(projectId, "proj", "proj", LanguageNames.CSharp) 82.AddProject(inProcOnlyProjectId, "in-proc-only", "in-proc-only.proj", NoCompilationConstants.LanguageName)
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\Solution\Solution.cs (1)
350return this.AddProject(id, name, assemblyName, language).GetProject(id)!;
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (1)
VisualStudioMSBuildWorkspaceTests.cs (1)
421var solution3 = solution2.AddProject(pid2, "foo", "foo", LanguageNames.CSharp);
Microsoft.CodeAnalysis.Workspaces.UnitTests (127)
CodeCleanup\AddMissingTokensTests.cs (1)
2730var project = solution.AddProject(projectId, "Project", "Project.dll", language).GetProject(projectId);
CodeCleanup\CodeCleanupTests.cs (1)
418var project = solution.AddProject(projectId, "Project", "Project.dll", language).GetProject(projectId);
CodeCleanup\FixIncorrectTokenTests.cs (1)
755var project = solution.AddProject(projectId, "Project", "Project.dll", language).GetProject(projectId);
CodeCleanup\NormalizeModifiersOrOperatorsTests.cs (1)
1031var project = solution.AddProject(projectId, "Project", "Project.dll", language).GetProject(projectId);
CodeCleanup\ReduceTokenTests.cs (1)
2018var project = solution.AddProject(projectId, "Project", "Project.dll", language).GetProject(projectId);
CodeCleanup\RemoveUnnecessaryLineContinuationTests.cs (1)
1455.AddProject(projectId, "Project", "Project.dll", language)
FindAllDeclarationsTests.cs (5)
136.AddProject(csharpId, "CSharp", "CSharp", LanguageNames.CSharp) 141.AddProject(vbId, "VB", "VB", LanguageNames.VisualBasic) 162.AddProject(submission0Id, submission0Name, submission0Name, LanguageNames.CSharp) 177.AddProject(submission1Id, submission1Name, submission1Name, LanguageNames.CSharp) 700.AddProject(pid, "VBProject", "VBProject", LanguageNames.VisualBasic)
FindAllDeclarationsTests.TestSolutionsAndProject.cs (2)
97.AddProject(pid, "TestCases", "TestCases", LanguageNames.CSharp) 117.AddProject(pid, "TestCases" + i, "TestCases" + i, LanguageNames.CSharp)
FindReferencesTests.cs (6)
64.AddProject(pid, "goo", "goo", languageName) 74.AddProject(pid, "goo", "goo", LanguageNames.CSharp) 123.AddProject(pid, "goo", "goo.dll", LanguageNames.CSharp) 173.AddProject(prj1Id, "testDeclareReferences", "testAssembly", LanguageNames.VisualBasic) 212.AddProject(prj1Id, "testDeclareReferences", "testAssembly", LanguageNames.VisualBasic) 276.AddProject(prj1Id, "testDeclareReferences", "testAssembly", LanguageNames.CSharp)
GeneratedCodeRecognitionTests.cs (1)
102.AddProject(projectId, projectName, projectName, LanguageNames.CSharp)
SemanticModelReuse\SemanticModelReuseTests.cs (1)
27var project = solution.AddProject(projectId, "Project", "Project.dll", language).GetProject(projectId);
SolutionTests\ProjectDependencyGraphTests.cs (1)
254solution = solution.AddProject(projectBId, "B", "B", LanguageNames.CSharp);
SolutionTests\SolutionTests.cs (101)
81.AddProject(projectId1, "proj1", "proj1.dll", LanguageNames.CSharp).WithProjectParseOptions(projectId1, parseOptions1) 85.AddProject(projectId2, "proj2", "proj2.dll", LanguageNames.CSharp).WithProjectParseOptions(projectId2, parseOptions2) 332.AddProject(projectId, "goo", "goo.dll", LanguageNames.CSharp) 842.AddProject(projectId1, "proj1", "proj1.dll", LanguageNames.CSharp).WithProjectParseOptions(projectId1, parseOptions1) 844.AddProject(projectId2, "proj2", "proj2.dll", LanguageNames.VisualBasic).WithProjectParseOptions(projectId2, parseOptions2) 1439.AddProject(projectId, "proj1", "proj1.dll", LanguageNames.CSharp); 1461.AddProject(projectId, "proj1", "proj1.dll", LanguageNames.CSharp); 1488var solution = workspace.CurrentSolution.AddProject(projectId, "proj1", "proj1.dll", LanguageNames.CSharp); 1516.AddProject(projectId, "proj1", "proj1.dll", LanguageNames.CSharp); 1539.AddProject(projectId, "proj1", "proj1.dll", LanguageNames.CSharp); 1562AddProject(projectId, "proj1", "proj1.dll", LanguageNames.CSharp); 1585AddProject(projectId, "proj1", "proj1.dll", LanguageNames.CSharp); 1622.AddProject(projectId, "proj1", "proj1.dll", LanguageNames.CSharp) 1676.AddProject(projectId, "proj1", "proj1.dll", LanguageNames.CSharp); 1699.AddProject(projectId, "proj1", "proj1.dll", LanguageNames.CSharp); 1722.AddProject(projectId, "proj1", "proj1.dll", LanguageNames.CSharp); 1739.AddProject(projectId, "proj1", "proj1.dll", languageName); 1764.AddProject(projectId, "proj1", "proj1.dll", LanguageNames.CSharp); 1788.AddProject(projectId, "proj1", "proj1.dll", LanguageNames.CSharp) 1822.AddProject(projectId, "proj1", "proj1.dll", languageName) 1860.AddProject(projectId, "proj1", "proj1.dll", LanguageNames.CSharp) 1879.AddProject(projectId, "proj1", "proj1.dll", LanguageNames.CSharp) 1898.AddProject(projectId, "proj1", "proj1.dll", LanguageNames.CSharp) 1917solution = solution.AddProject(projectId2, "proj2", "proj2.dll", LanguageNames.CSharp); 1968.AddProject(projectId2, "proj2", "proj2.dll", LanguageNames.CSharp) 1969.AddProject(projectId3, "proj3", "proj3.dll", LanguageNames.CSharp); 2008solution = solution.AddProject(projectId2, "proj2", "proj2.dll", LanguageNames.CSharp); 2047.AddProject(projectId0, "non-submission", "non-submission.dll", LanguageNames.CSharp) 2361var solution = workspace.CurrentSolution.AddProject(projectId, "proj1", "proj1.dll", LanguageNames.CSharp). 2387var solution = workspace.CurrentSolution.AddProject(projectId, "proj1", "proj1.dll", LanguageNames.CSharp). 2417var solution = workspace.CurrentSolution.AddProject(projectId, "proj1", "proj1.dll", LanguageNames.CSharp). 2446var solution = workspace.CurrentSolution.AddProject(projectId, "proj1", "proj1.dll", LanguageNames.CSharp). 2475var solution = workspace.CurrentSolution.AddProject(projectId, "proj1", "proj1.dll", LanguageNames.CSharp). 2506var solution = workspace.CurrentSolution.AddProject(projectId, "proj1", "proj1.dll", LanguageNames.CSharp). 2531solution = solution.AddProject(pid, "goo", "goo.dll", LanguageNames.CSharp); 2544solution = solution.AddProject(project1, "goo", "goo.dll", LanguageNames.CSharp); 2557solution = solution.AddProject(project1, "name", "assemblyName", LanguageNames.CSharp); 2558solution = solution.AddProject(project2, "name", "assemblyName", LanguageNames.CSharp); 2570.AddProject(pid, "goo", "goo.dll", LanguageNames.CSharp) 2616.AddProject(projectId, "goo", "goo.dll", LanguageNames.CSharp) 2640.AddProject(projectId1, "project1", "project1.dll", LanguageNames.CSharp) 2641.AddProject(projectId2, "project2", "project2.dll", LanguageNames.CSharp) 2668.AddProject(projectId1, "project1", "project1.dll", LanguageNames.CSharp); 2692.AddProject(projectId, "project1", "project1.dll", LanguageNames.CSharp) 2713.AddProject(projectId1, "project1", "project1.dll", LanguageNames.CSharp) 2714.AddProject(projectId2, "project2", "project2.dll", LanguageNames.CSharp) 2734.AddProject(projectId1, "project1", "project1.dll", LanguageNames.CSharp) 2735.AddProject(projectId2, "project2", "project2.dll", LanguageNames.CSharp) 2753.AddProject(projectId1, "project1", "project1.dll", LanguageNames.CSharp) 2754.AddProject(projectId2, "project2", "project2.dll", LanguageNames.CSharp) 2772.AddProject(projectId1, "project1", "project1.dll", LanguageNames.CSharp) 2773.AddProject(projectId2, "project2", "project2.dll", LanguageNames.CSharp) 2806.AddProject(pm1, "goo", "goo.dll", LanguageNames.CSharp) 2807.AddProject(pm2, "bar", "bar.dll", LanguageNames.CSharp) 2823.AddProject(pm1, "goo", "goo.dll", LanguageNames.CSharp) 2825.AddProject(pm2, "bar", "bar.dll", LanguageNames.VisualBasic) 2927solution = solution.AddProject(projectIds[i], i.ToString(), i.ToString(), LanguageNames.CSharp); 2945solution = solution.AddProject(project1, "goo", "goo.dll", LanguageNames.CSharp); 2983solution = solution.AddProject(project1, "goo", "goo.dll", LanguageNames.CSharp); 3041solution = solution.AddProject(project1, "goo", "goo.dll", LanguageNames.CSharp); 3060sol = sol.AddProject(pid, "goo", "goo.dll", LanguageNames.CSharp); 3080sol = sol.AddProject(pid, "goo", "goo.dll", LanguageNames.CSharp) 3081.AddProject(pid2, "bar", "bar.dll", LanguageNames.CSharp) 3106sol = sol.AddProject(pid, "goo", "goo.dll", LanguageNames.CSharp) 3107.AddProject(pid2, "bar", "bar.dll", LanguageNames.CSharp) 3120var sol3 = sol2.AddProject(pid, "goo", "goo.dll", LanguageNames.CSharp); 3139.AddProject(pid, "goo", "goo.dll", LanguageNames.CSharp) 3160.AddProject(projectId, "ProjectName", "AssemblyName", LanguageNames.CSharp) 3183.AddProject(pid, "goo", "goo.dll", LanguageNames.CSharp) 3224.AddProject(pid, "test", "test.dll", language) 3265.AddProject(projectId, "goo", "goo.dll", LanguageNames.CSharp) 3300sol = sol.AddProject(pid, "goo", "goo.dll", LanguageNames.CSharp) 3327.AddProject(pid, "goo", "goo.dll", LanguageNames.CSharp) 3349.AddProject(pid, "goo", "goo.dll", LanguageNames.CSharp) 3370.AddProject(pid, "goo", "goo.dll", LanguageNames.CSharp) 3394.AddProject(pid, "goo", "goo.dll", LanguageNames.CSharp) 3416.AddProject(pid, "goo", "goo.dll", LanguageNames.CSharp) 3437.AddProject(pid, "goo", "goo.dll", LanguageNames.CSharp) 3457.AddProject(pid, "goo", "goo.dll", LanguageNames.CSharp) 3477.AddProject(pid, "goo", "goo.dll", LanguageNames.CSharp) 3497.AddProject(pid, "goo", "goo.dll", LanguageNames.CSharp) 3516.AddProject(pid, "goo", "goo.dll", LanguageNames.CSharp) 3547.AddProject(pid, "goo", "goo.dll", LanguageNames.CSharp) 3579.AddProject(pid, "goo", "goo.dll", LanguageNames.CSharp) 3605.AddProject(pid, "goo", "goo.dll", LanguageNames.CSharp) 3639.AddProject(pid, "goo", "goo.dll", LanguageNames.CSharp) 3669.AddProject(pid, "goo", "goo.dll", LanguageNames.VisualBasic) 3720.AddProject(pid, "goo", "goo.dll", LanguageNames.CSharp) 3745.AddProject(pid, "goo", "goo.dll", LanguageNames.CSharp) 3772.AddProject(pid, "test", "test.dll", language) 3911.AddProject(pid, "goo", "goo", LanguageNames.CSharp) 3959.AddProject(pid1, "GooA", "Goo.dll", LanguageNames.VisualBasic) 3962.AddProject(pid2, "GooB", "Goo2.dll", LanguageNames.VisualBasic) 3965.AddProject(pid3, "Bar", "Bar.dll", LanguageNames.CSharp) 4573solution = solution.AddProject(pid, "test", "test.dll", LanguageNames.CSharp); 4637solution = solution.AddProject(pid, "test", "test.dll", LanguageNames.CSharp); 4676solution = solution.AddProject(projectId, "Test", "Test.dll", languageName); 4712solution = solution.AddProject(projectId, "Test", "Test.dll", languageName); 4753solution = solution.AddProject(projectId, "Test", "Test.dll", languageName); 4798solution = solution.AddProject(projectId, "Test", "Test.dll", LanguageNames.CSharp); 4829solution = solution.AddProject(projectId, "Test", "Test.dll", LanguageNames.CSharp)
SolutionTests\SolutionWithSourceGeneratorTests.cs (1)
426solution = solution.AddProject(projectIdWithReference, "WithReference", "WithReference", LanguageNames.CSharp)
SyntaxNodeTests.cs (1)
88.AddProject(pid, "proj", "proj", LanguageNames.CSharp)
SyntaxReferenceTests.cs (2)
31.AddProject(pid, "Test", "Test.dll", LanguageNames.CSharp) 41.AddProject(pid, "Test", "Test.dll", LanguageNames.VisualBasic)
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (1)
EditorConfigSettings\Aggregator\SettingsAggregatorTests.cs (1)
29.AddProject(projectId, "proj1", "proj1.dll", LanguageNames.CSharp)