1 write to Version
Microsoft.Build (1)
Construction\ProjectRootElement.cs (1)
2129Version = Interlocked.Increment(ref s_globalVersionCounter);
18 references to Version
Microsoft.Build (12)
Construction\ProjectRootElement.cs (5)
89/// Immediately after loading from disk, this has the same value as <see cref="Version">version</see>. 223_versionOnDisk = Version; 574public bool HasUnsavedChanges => Link != null ? RootLink.HasUnsavedChanges : Version != _versionOnDisk; 1552_versionOnDisk = Version; 1604_versionOnDisk = Version;
Definition\Project.cs (4)
2056if (_evaluatedVersion < Xml.Version) 2081if (import.ImportedProject.Version != import.VersionEvaluated || _evaluatedVersion < import.VersionEvaluated) 3739int highestXmlVersion = Xml.Version; 4287RecordImport(null, Project.Xml, Project.Xml.Version, null);
Evaluation\Evaluator.cs (2)
1395_data.RecordImport(importElement, importedProjectRootElement, importedProjectRootElement.Version, sdkResult); 2158importedProjectElement.Version);
ObjectModelRemoting\ConstructionObjectLinks\ProjectRootElementLink.cs (1)
21/// Access to remote <see cref="ProjectRootElement.Version"/>.
Microsoft.Build.Engine.OM.UnitTests (6)
Construction\ProjectRootElement_Tests.cs (3)
1863var version = projectElement.Version; 1872Assert.NotEqual(version, projectElement.Version); 1876Assert.Equal(version, projectElement.Version);
ObjectModelRemoting\Helpers\ViewValidation.construction.cs (2)
535Assert.Equal(realXml.Version, viewXml.Version);
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectRootElementLink.cs (1)
32public int Version => this.ProjectXml.Version;