2 writes to _applyChangesProjectFile
Microsoft.CodeAnalysis.Workspaces.MSBuild (2)
MSBuild\MSBuildWorkspace.cs (2)
363_applyChangesProjectFile = buildHost.LoadProjectFileAsync(projectPath, languageName, CancellationToken.None).Result; 400_applyChangesProjectFile = null;
22 references to _applyChangesProjectFile
Microsoft.CodeAnalysis.Workspaces.MSBuild (22)
MSBuild\MSBuildWorkspace.cs (22)
340Debug.Assert(_applyChangesProjectFile == null); 376if (_applyChangesProjectFile != null) 380_applyChangesProjectFile.SaveAsync(CancellationToken.None).Wait(); 393_applyChangesProjectFile?.DisposeAsync().AsTask().GetAwaiter().GetResult(); 470Debug.Assert(_applyChangesProjectFile != null); 494_applyChangesProjectFile.AddDocumentAsync(relativePath, logicalPath: null, CancellationToken.None).Wait(); 530Debug.Assert(_applyChangesProjectFile != null); 535_applyChangesProjectFile.RemoveDocumentAsync(document.FilePath, CancellationToken.None).Wait(); 591RoslynDebug.AssertNotNull(_applyChangesProjectFile); 606_applyChangesProjectFile.AddMetadataReferenceAsync(identity.GetDisplayName(), [.. metadataReference.Properties.Aliases], hintPath: null, CancellationToken.None).Wait(); 612_applyChangesProjectFile.AddMetadataReferenceAsync(fileName, [.. metadataReference.Properties.Aliases], hintPath: null, CancellationToken.None).Wait(); 618_applyChangesProjectFile.AddMetadataReferenceAsync(fileName, [.. metadataReference.Properties.Aliases], relativePath, CancellationToken.None).Wait(); 627RoslynDebug.AssertNotNull(_applyChangesProjectFile); 638_applyChangesProjectFile.RemoveMetadataReferenceAsync(identity.Name, identity.GetDisplayName(), peRef.FilePath, CancellationToken.None).Wait(); 669Debug.Assert(_applyChangesProjectFile != null); 676_applyChangesProjectFile.AddProjectReferenceAsync(project.Name, reference, CancellationToken.None).Wait(); 684Debug.Assert(_applyChangesProjectFile != null); 689_applyChangesProjectFile.RemoveProjectReferenceAsync(project.Name, project.FilePath, CancellationToken.None).Wait(); 697Debug.Assert(_applyChangesProjectFile != null); 701_applyChangesProjectFile.AddAnalyzerReferenceAsync(fileRef.FullPath, CancellationToken.None).Wait(); 709Debug.Assert(_applyChangesProjectFile != null); 713_applyChangesProjectFile.RemoveAnalyzerReferenceAsync(fileRef.FullPath, CancellationToken.None).Wait();