11 references to WithProjectAssemblyName
Microsoft.CodeAnalysis.Workspaces (3)
Workspace\ProjectSystem\ProjectSystemProject.cs (1)
353set => ChangeProjectProperty(ref _assemblyName, value, s => s.WithProjectAssemblyName(Id, value), logThrowAwayTelemetry: true);
Workspace\Solution\Project.cs (1)
579=> this.Solution.WithProjectAssemblyName(this.Id, assemblyName).GetRequiredProject(Id);
Workspace\Workspace.cs (1)
872=> SetCurrentSolution(oldSolution => oldSolution.WithProjectAssemblyName(projectId, assemblyName), WorkspaceChangeKind.ProjectChanged, projectId);
Microsoft.CodeAnalysis.Workspaces.UnitTests (6)
SolutionTests\SolutionTests.cs (6)
1444var newSolution = solution.WithProjectAssemblyName(projectId, assemblyName); 1447Assert.Same(newSolution, newSolution.WithProjectAssemblyName(projectId, assemblyName)); 1449Assert.Throws<ArgumentNullException>("assemblyName", () => solution.WithProjectAssemblyName(projectId, null!)); 1450Assert.Throws<ArgumentNullException>("projectId", () => solution.WithProjectAssemblyName(null!, "x.dll")); 1451Assert.Throws<InvalidOperationException>(() => solution.WithProjectAssemblyName(ProjectId.CreateNewId(), "x.dll")); 2545solution = solution.WithProjectAssemblyName(project1, "bar");
Microsoft.ML.CodeAnalyzer.Tests (1)
Code\BestFriendTest.cs (1)
75solution = solution.WithProjectAssemblyName(projectId, "ProjectB");
Roslyn.VisualStudio.Next.UnitTests (1)
Services\SolutionServiceTests.cs (1)
256.WithProjectAssemblyName(projectId, "AssemblyName" + version)