22 references to VersionMajor
Microsoft.CodeAnalysis (2)
MetadataReference\AssemblyIdentity.DisplayName.cs (1)
631parts |= (AssemblyIdentityParts)((int)AssemblyIdentityParts.VersionMajor << partIndex);
MetadataReference\AssemblyIdentityParts.cs (1)
13Version = VersionMajor | VersionMinor | VersionBuild | VersionRevision,
Microsoft.CodeAnalysis.Scripting (1)
src\Compilers\Shared\GlobalAssemblyCacheHelpers\FusionAssemblyIdentity.cs (1)
233parts |= AssemblyIdentityParts.VersionMajor;
Microsoft.CodeAnalysis.UnitTests (19)
MetadataReferences\AssemblyIdentityDisplayNameTests.cs (18)
424new AssemblyIdentity("goo", new Version(1, 0, 0, 0)), N | AssemblyIdentityParts.VersionMajor); 445TestParseVersion("1", 1, 0, 0, 0, AssemblyIdentityParts.VersionMajor); 446TestParseVersion("65535", 65535, 0, 0, 0, AssemblyIdentityParts.VersionMajor); 450TestParseVersion("1.", 1, 0, 0, 0, AssemblyIdentityParts.VersionMajor); 451TestParseVersion("0.1", 0, 1, 0, 0, AssemblyIdentityParts.VersionMajor | AssemblyIdentityParts.VersionMinor); 452TestParseVersion("1.2", 1, 2, 0, 0, AssemblyIdentityParts.VersionMajor | AssemblyIdentityParts.VersionMinor); 456TestParseVersion("1..", 1, 0, 0, 0, AssemblyIdentityParts.VersionMajor); 457TestParseVersion("1.2.", 1, 2, 0, 0, AssemblyIdentityParts.VersionMajor | AssemblyIdentityParts.VersionMinor); 458TestParseVersion("1.2.3", 1, 2, 3, 0, AssemblyIdentityParts.VersionMajor | AssemblyIdentityParts.VersionMinor | AssemblyIdentityParts.VersionBuild); 460TestParseVersion("1..3", 1, 0, 3, 0, AssemblyIdentityParts.VersionMajor | AssemblyIdentityParts.VersionBuild); 462TestParseVersion("1.2.3.", 1, 2, 3, 0, AssemblyIdentityParts.VersionMajor | AssemblyIdentityParts.VersionMinor | AssemblyIdentityParts.VersionBuild); 463TestParseVersion("1.2..4", 1, 2, 0, 4, AssemblyIdentityParts.VersionMajor | AssemblyIdentityParts.VersionMinor | AssemblyIdentityParts.VersionRevision); 464TestParseVersion("1.2..", 1, 2, 0, 0, AssemblyIdentityParts.VersionMajor | AssemblyIdentityParts.VersionMinor); 465TestParseVersion("1.2.3.4", 1, 2, 3, 4, AssemblyIdentityParts.VersionMajor | AssemblyIdentityParts.VersionMinor | AssemblyIdentityParts.VersionBuild | AssemblyIdentityParts.VersionRevision); 469AssemblyIdentityParts.VersionMajor | AssemblyIdentityParts.VersionMinor | AssemblyIdentityParts.VersionBuild | AssemblyIdentityParts.VersionRevision); 472TestParseVersion("*", 0, 0, 0, 0, AssemblyIdentityParts.VersionMajor); 473TestParseVersion("1.*", 1, 0, 0, 0, AssemblyIdentityParts.VersionMajor | AssemblyIdentityParts.VersionMinor); 474TestParseVersion("1.2.*", 1, 2, 0, 0, AssemblyIdentityParts.VersionMajor | AssemblyIdentityParts.VersionMinor | AssemblyIdentityParts.VersionBuild);
src\Compilers\Shared\GlobalAssemblyCacheHelpers\FusionAssemblyIdentity.cs (1)
233parts |= AssemblyIdentityParts.VersionMajor;