This commit is contained in:
David Wengier 2024-09-18 13:16:37 +10:00
Родитель a7d127c021
Коммит 1e9eaaede5
1 изменённых файлов: 4 добавлений и 6 удалений

Просмотреть файл

@ -131,12 +131,10 @@ internal static class CSharpTestLspServerHelpers
? [projectInfoNet60, projectInfoNet80]
: [projectInfoNet80];
var solutionInfo = SolutionInfo.Create(
id: SolutionId.CreateNewId("TestSolution"),
version: VersionStamp.Default,
projects: projectInfos);
workspace.AddSolution(solutionInfo);
foreach (var projectInfo in projectInfos)
{
workspace.AddProject(projectInfo);
}
// Add document to workspace. We use an IVT method to create the DocumentInfo variable because there's
// a special constructor in Roslyn that will help identify the document as belonging to Razor.