2 writes to _applyChangesProjectFile
Microsoft.CodeAnalysis.Workspaces.MSBuild (2)
MSBuild\MSBuildWorkspace.cs (2)
356
_applyChangesProjectFile
= buildHost.LoadProjectFileAsync(projectPath, languageName, CancellationToken.None).Result;
383
_applyChangesProjectFile
= null;
21 references to _applyChangesProjectFile
Microsoft.CodeAnalysis.Workspaces.MSBuild (21)
MSBuild\MSBuildWorkspace.cs (21)
333
Debug.Assert(
_applyChangesProjectFile
== null);
369
if (
_applyChangesProjectFile
!= null)
373
_applyChangesProjectFile
.SaveAsync(CancellationToken.None).Wait();
453
Debug.Assert(
_applyChangesProjectFile
!= null);
477
_applyChangesProjectFile
.AddDocumentAsync(relativePath, logicalPath: null, CancellationToken.None).Wait();
513
Debug.Assert(
_applyChangesProjectFile
!= null);
518
_applyChangesProjectFile
.RemoveDocumentAsync(document.FilePath, CancellationToken.None).Wait();
574
RoslynDebug.AssertNotNull(
_applyChangesProjectFile
);
589
_applyChangesProjectFile
.AddMetadataReferenceAsync(identity.GetDisplayName(), metadataReference.Properties.Aliases, hintPath: null, CancellationToken.None).Wait();
595
_applyChangesProjectFile
.AddMetadataReferenceAsync(fileName, metadataReference.Properties.Aliases, hintPath: null, CancellationToken.None).Wait();
601
_applyChangesProjectFile
.AddMetadataReferenceAsync(fileName, metadataReference.Properties.Aliases, relativePath, CancellationToken.None).Wait();
610
RoslynDebug.AssertNotNull(
_applyChangesProjectFile
);
621
_applyChangesProjectFile
.RemoveMetadataReferenceAsync(identity.Name, identity.GetDisplayName(), peRef.FilePath, CancellationToken.None).Wait();
652
Debug.Assert(
_applyChangesProjectFile
!= null);
659
_applyChangesProjectFile
.AddProjectReferenceAsync(project.Name, reference, CancellationToken.None).Wait();
667
Debug.Assert(
_applyChangesProjectFile
!= null);
672
_applyChangesProjectFile
.RemoveProjectReferenceAsync(project.Name, project.FilePath, CancellationToken.None).Wait();
680
Debug.Assert(
_applyChangesProjectFile
!= null);
684
_applyChangesProjectFile
.AddAnalyzerReferenceAsync(fileRef.FullPath, CancellationToken.None).Wait();
692
Debug.Assert(
_applyChangesProjectFile
!= null);
696
_applyChangesProjectFile
.RemoveAnalyzerReferenceAsync(fileRef.FullPath, CancellationToken.None).Wait();