2 writes to _applyChangesProjectFile
Microsoft.CodeAnalysis.Workspaces.MSBuild (2)
MSBuild\MSBuildWorkspace.cs (2)
380_applyChangesProjectFile = buildHost.LoadProjectFileAsync(projectPath, languageName, CancellationToken.None).Result; 417_applyChangesProjectFile = null;
22 references to _applyChangesProjectFile
Microsoft.CodeAnalysis.Workspaces.MSBuild (22)
MSBuild\MSBuildWorkspace.cs (22)
349Debug.Assert(_applyChangesProjectFile == null); 393if (_applyChangesProjectFile != null) 397_applyChangesProjectFile.SaveAsync(CancellationToken.None).Wait(); 410_applyChangesProjectFile?.DisposeAsync().AsTask().GetAwaiter().GetResult(); 487Debug.Assert(_applyChangesProjectFile != null); 511_applyChangesProjectFile.AddDocumentAsync(relativePath, logicalPath: null, CancellationToken.None).Wait(); 547Debug.Assert(_applyChangesProjectFile != null); 552_applyChangesProjectFile.RemoveDocumentAsync(document.FilePath, CancellationToken.None).Wait(); 608RoslynDebug.AssertNotNull(_applyChangesProjectFile); 623_applyChangesProjectFile.AddMetadataReferenceAsync(identity.GetDisplayName(), [.. metadataReference.Properties.Aliases], hintPath: null, CancellationToken.None).Wait(); 629_applyChangesProjectFile.AddMetadataReferenceAsync(fileName, [.. metadataReference.Properties.Aliases], hintPath: null, CancellationToken.None).Wait(); 635_applyChangesProjectFile.AddMetadataReferenceAsync(fileName, [.. metadataReference.Properties.Aliases], relativePath, CancellationToken.None).Wait(); 644RoslynDebug.AssertNotNull(_applyChangesProjectFile); 655_applyChangesProjectFile.RemoveMetadataReferenceAsync(identity.Name, identity.GetDisplayName(), peRef.FilePath, CancellationToken.None).Wait(); 686Debug.Assert(_applyChangesProjectFile != null); 693_applyChangesProjectFile.AddProjectReferenceAsync(project.Name, reference, CancellationToken.None).Wait(); 701Debug.Assert(_applyChangesProjectFile != null); 706_applyChangesProjectFile.RemoveProjectReferenceAsync(project.Name, project.FilePath, CancellationToken.None).Wait(); 714Debug.Assert(_applyChangesProjectFile != null); 718_applyChangesProjectFile.AddAnalyzerReferenceAsync(fileRef.FullPath, CancellationToken.None).Wait(); 726Debug.Assert(_applyChangesProjectFile != null); 730_applyChangesProjectFile.RemoveAnalyzerReferenceAsync(fileRef.FullPath, CancellationToken.None).Wait();