2 writes to _applyChangesProjectFile
Microsoft.CodeAnalysis.Workspaces.MSBuild (2)
MSBuild\MSBuildWorkspace.cs (2)
371_applyChangesProjectFile = buildHost.LoadProjectFileAsync(projectPath, languageName, CancellationToken.None).Result; 408_applyChangesProjectFile = null;
22 references to _applyChangesProjectFile
Microsoft.CodeAnalysis.Workspaces.MSBuild (22)
MSBuild\MSBuildWorkspace.cs (22)
340Debug.Assert(_applyChangesProjectFile == null); 384if (_applyChangesProjectFile != null) 388_applyChangesProjectFile.SaveAsync(CancellationToken.None).Wait(); 401_applyChangesProjectFile?.DisposeAsync().AsTask().GetAwaiter().GetResult(); 478Debug.Assert(_applyChangesProjectFile != null); 502_applyChangesProjectFile.AddDocumentAsync(relativePath, logicalPath: null, CancellationToken.None).Wait(); 538Debug.Assert(_applyChangesProjectFile != null); 543_applyChangesProjectFile.RemoveDocumentAsync(document.FilePath, CancellationToken.None).Wait(); 599RoslynDebug.AssertNotNull(_applyChangesProjectFile); 614_applyChangesProjectFile.AddMetadataReferenceAsync(identity.GetDisplayName(), [.. metadataReference.Properties.Aliases], hintPath: null, CancellationToken.None).Wait(); 620_applyChangesProjectFile.AddMetadataReferenceAsync(fileName, [.. metadataReference.Properties.Aliases], hintPath: null, CancellationToken.None).Wait(); 626_applyChangesProjectFile.AddMetadataReferenceAsync(fileName, [.. metadataReference.Properties.Aliases], relativePath, CancellationToken.None).Wait(); 635RoslynDebug.AssertNotNull(_applyChangesProjectFile); 646_applyChangesProjectFile.RemoveMetadataReferenceAsync(identity.Name, identity.GetDisplayName(), peRef.FilePath, CancellationToken.None).Wait(); 677Debug.Assert(_applyChangesProjectFile != null); 684_applyChangesProjectFile.AddProjectReferenceAsync(project.Name, reference, CancellationToken.None).Wait(); 692Debug.Assert(_applyChangesProjectFile != null); 697_applyChangesProjectFile.RemoveProjectReferenceAsync(project.Name, project.FilePath, CancellationToken.None).Wait(); 705Debug.Assert(_applyChangesProjectFile != null); 709_applyChangesProjectFile.AddAnalyzerReferenceAsync(fileRef.FullPath, CancellationToken.None).Wait(); 717Debug.Assert(_applyChangesProjectFile != null); 721_applyChangesProjectFile.RemoveAnalyzerReferenceAsync(fileRef.FullPath, CancellationToken.None).Wait();