2 writes to _applyChangesProjectFile
Microsoft.CodeAnalysis.Workspaces.MSBuild (2)
MSBuild\MSBuildWorkspace.cs (2)
336
_applyChangesProjectFile
= fileLoader.LoadProjectFileAsync(projectPath, buildManager, CancellationToken.None).Result;
363
_applyChangesProjectFile
= null;
20 references to _applyChangesProjectFile
Microsoft.CodeAnalysis.Workspaces.MSBuild (20)
MSBuild\MSBuildWorkspace.cs (20)
313
Debug.Assert(
_applyChangesProjectFile
== null);
349
if (
_applyChangesProjectFile
!= null)
353
_applyChangesProjectFile
.Save();
433
Debug.Assert(
_applyChangesProjectFile
!= null);
444
var extension =
_applyChangesProjectFile
.GetDocumentExtension(info.SourceCodeKind);
458
_applyChangesProjectFile
.AddDocument(relativePath);
495
Debug.Assert(
_applyChangesProjectFile
!= null);
500
_applyChangesProjectFile
.RemoveDocument(document.FilePath);
531
RoslynDebug.AssertNotNull(
_applyChangesProjectFile
);
540
_applyChangesProjectFile
.AddMetadataReference(metadataReference, identity);
546
RoslynDebug.AssertNotNull(
_applyChangesProjectFile
);
555
_applyChangesProjectFile
.RemoveMetadataReference(metadataReference, identity);
584
Debug.Assert(
_applyChangesProjectFile
!= null);
589
_applyChangesProjectFile
.AddProjectReference(project.Name, new ProjectFileReference(project.FilePath, projectReference.Aliases));
597
Debug.Assert(
_applyChangesProjectFile
!= null);
602
_applyChangesProjectFile
.RemoveProjectReference(project.Name, project.FilePath);
610
Debug.Assert(
_applyChangesProjectFile
!= null);
611
_applyChangesProjectFile
.AddAnalyzerReference(analyzerReference);
617
Debug.Assert(
_applyChangesProjectFile
!= null);
618
_applyChangesProjectFile
.RemoveAnalyzerReference(analyzerReference);