2 writes to _applyChangesProjectFile
Microsoft.CodeAnalysis.Workspaces.MSBuild (2)
MSBuild\MSBuildWorkspace.cs (2)
354
_applyChangesProjectFile
= buildHost.LoadProjectFileAsync(projectPath, languageName, CancellationToken.None).Result;
381
_applyChangesProjectFile
= null;
21 references to _applyChangesProjectFile
Microsoft.CodeAnalysis.Workspaces.MSBuild (21)
MSBuild\MSBuildWorkspace.cs (21)
331
Debug.Assert(
_applyChangesProjectFile
== null);
367
if (
_applyChangesProjectFile
!= null)
371
_applyChangesProjectFile
.SaveAsync(CancellationToken.None).Wait();
451
Debug.Assert(
_applyChangesProjectFile
!= null);
475
_applyChangesProjectFile
.AddDocumentAsync(relativePath, logicalPath: null, CancellationToken.None).Wait();
511
Debug.Assert(
_applyChangesProjectFile
!= null);
516
_applyChangesProjectFile
.RemoveDocumentAsync(document.FilePath, CancellationToken.None).Wait();
572
RoslynDebug.AssertNotNull(
_applyChangesProjectFile
);
587
_applyChangesProjectFile
.AddMetadataReferenceAsync(identity.GetDisplayName(), metadataReference.Properties.Aliases, hintPath: null, CancellationToken.None).Wait();
593
_applyChangesProjectFile
.AddMetadataReferenceAsync(fileName, metadataReference.Properties.Aliases, hintPath: null, CancellationToken.None).Wait();
599
_applyChangesProjectFile
.AddMetadataReferenceAsync(fileName, metadataReference.Properties.Aliases, relativePath, CancellationToken.None).Wait();
608
RoslynDebug.AssertNotNull(
_applyChangesProjectFile
);
619
_applyChangesProjectFile
.RemoveMetadataReferenceAsync(identity.Name, identity.GetDisplayName(), peRef.FilePath, CancellationToken.None).Wait();
650
Debug.Assert(
_applyChangesProjectFile
!= null);
657
_applyChangesProjectFile
.AddProjectReferenceAsync(project.Name, reference, CancellationToken.None).Wait();
665
Debug.Assert(
_applyChangesProjectFile
!= null);
670
_applyChangesProjectFile
.RemoveProjectReferenceAsync(project.Name, project.FilePath, CancellationToken.None).Wait();
678
Debug.Assert(
_applyChangesProjectFile
!= null);
682
_applyChangesProjectFile
.AddAnalyzerReferenceAsync(fileRef.FullPath, CancellationToken.None).Wait();
690
Debug.Assert(
_applyChangesProjectFile
!= null);
694
_applyChangesProjectFile
.RemoveAnalyzerReferenceAsync(fileRef.FullPath, CancellationToken.None).Wait();