2 writes to _applyChangesProjectFile
Microsoft.CodeAnalysis.Workspaces.MSBuild (2)
MSBuild\MSBuildWorkspace.cs (2)
363
_applyChangesProjectFile
= buildHost.LoadProjectFileAsync(projectPath, languageName, CancellationToken.None).Result;
390
_applyChangesProjectFile
= null;
21 references to _applyChangesProjectFile
Microsoft.CodeAnalysis.Workspaces.MSBuild (21)
MSBuild\MSBuildWorkspace.cs (21)
340
Debug.Assert(
_applyChangesProjectFile
== null);
376
if (
_applyChangesProjectFile
!= null)
380
_applyChangesProjectFile
.SaveAsync(CancellationToken.None).Wait();
460
Debug.Assert(
_applyChangesProjectFile
!= null);
484
_applyChangesProjectFile
.AddDocumentAsync(relativePath, logicalPath: null, CancellationToken.None).Wait();
520
Debug.Assert(
_applyChangesProjectFile
!= null);
525
_applyChangesProjectFile
.RemoveDocumentAsync(document.FilePath, CancellationToken.None).Wait();
581
RoslynDebug.AssertNotNull(
_applyChangesProjectFile
);
596
_applyChangesProjectFile
.AddMetadataReferenceAsync(identity.GetDisplayName(), metadataReference.Properties.Aliases, hintPath: null, CancellationToken.None).Wait();
602
_applyChangesProjectFile
.AddMetadataReferenceAsync(fileName, metadataReference.Properties.Aliases, hintPath: null, CancellationToken.None).Wait();
608
_applyChangesProjectFile
.AddMetadataReferenceAsync(fileName, metadataReference.Properties.Aliases, relativePath, CancellationToken.None).Wait();
617
RoslynDebug.AssertNotNull(
_applyChangesProjectFile
);
628
_applyChangesProjectFile
.RemoveMetadataReferenceAsync(identity.Name, identity.GetDisplayName(), peRef.FilePath, CancellationToken.None).Wait();
659
Debug.Assert(
_applyChangesProjectFile
!= null);
666
_applyChangesProjectFile
.AddProjectReferenceAsync(project.Name, reference, CancellationToken.None).Wait();
674
Debug.Assert(
_applyChangesProjectFile
!= null);
679
_applyChangesProjectFile
.RemoveProjectReferenceAsync(project.Name, project.FilePath, CancellationToken.None).Wait();
687
Debug.Assert(
_applyChangesProjectFile
!= null);
691
_applyChangesProjectFile
.AddAnalyzerReferenceAsync(fileRef.FullPath, CancellationToken.None).Wait();
699
Debug.Assert(
_applyChangesProjectFile
!= null);
703
_applyChangesProjectFile
.RemoveAnalyzerReferenceAsync(fileRef.FullPath, CancellationToken.None).Wait();