41 references to Version
Microsoft.AspNetCore.App.UnitTests (16)
PackageTests.cs (2)
99var assemblyVersion = reader.GetAssemblyDefinition().Version; 129var assemblyVersion = reader.GetAssemblyDefinition().Version;
SharedFxTests.cs (7)
196Assert.Equal(expectedVersion.Major, assemblyDefinition.Version.Major); 201Assert.True(expectedVersion.Major == assemblyDefinition.Version.Major || 202expectedVersion.Major - 1 == assemblyDefinition.Version.Major, 203$"Unexpected Major assembly version '{assemblyDefinition.Version.Major}' is neither " + 207Assert.Equal(expectedVersion.Minor, assemblyDefinition.Version.Minor); 208Assert.Equal(0, assemblyDefinition.Version.Build); 209Assert.Equal(0, assemblyDefinition.Version.Revision);
TargetingPackTests.cs (7)
93Assert.Equal(expectedVersion.Major, assemblyDefinition.Version.Major); 98Assert.True(expectedVersion.Major == assemblyDefinition.Version.Major || 99expectedVersion.Major - 1 == assemblyDefinition.Version.Major, 100$"Unexpected Major assembly version '{assemblyDefinition.Version.Major}' is neither " + 104Assert.Equal(expectedVersion.Minor, assemblyDefinition.Version.Minor); 105Assert.Equal(0, assemblyDefinition.Version.Build); 106Assert.Equal(0, assemblyDefinition.Version.Revision);
Microsoft.Build.Tasks.Core (1)
ManifestUtil\MetadataReader.cs (1)
144string version = ad.Version.ToString();
Microsoft.CodeAnalysis (3)
Compilation\DeterministicKeyBuilder.cs (1)
354WriteVersion(writer, "version", assemblyDef.Version);
MetadataReader\MetadataReaderExtensions.cs (1)
53assemblyDef.Version,
MetadataReference\AssemblyIdentityUtils.cs (1)
28Version version = assemblyDefinition.Version;
Microsoft.CodeAnalysis.CodeStyle (1)
src\Compilers\Core\Portable\MetadataReference\AssemblyIdentityUtils.cs (1)
28Version version = assemblyDefinition.Version;
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (13)
Attributes\AttributeTests_Assembly.cs (13)
44Assert.Equal(new Version(1, 22, 333, 4444), r.Version); 55Assert.Equal(1, r.Version.Major); 56Assert.Equal(2, r.Version.Minor); 57Assert.Equal(0, r.Version.Build); 58Assert.Equal(0, r.Version.Revision); 73Assert.Equal(10101, r.Version.Major); 74Assert.Equal(0, r.Version.Minor); 75Assert.Equal(days, r.Version.Build); 76Assert.Equal(seconds, r.Version.Revision); 87Assert.Equal(10101, r.Version.Major); 88Assert.Equal(0, r.Version.Minor); 89Assert.Equal(65535, r.Version.Build); 90Assert.Equal(0, r.Version.Revision);
Microsoft.CodeAnalysis.Workspaces (1)
src\Compilers\Core\Portable\MetadataReference\AssemblyIdentityUtils.cs (1)
28Version version = assemblyDefinition.Version;
Microsoft.DotNet.Build.Tasks.Packaging (1)
VersionUtility.cs (1)
44result = reader.GetAssemblyDefinition().Version;
Microsoft.DotNet.PackageTesting (1)
VerifyClosure.cs (1)
439var version = assembly.Version;
Microsoft.DotNet.SharedFramework.Sdk (1)
src\Microsoft.DotNet.PackageTesting\VerifyClosure.cs (1)
439var version = assembly.Version;
System.Diagnostics.FileVersionInfo (1)
System\Diagnostics\FileVersionInfo.Unix.cs (1)
93Version productVersion = assemblyDefinition.Version;
System.Reflection.Metadata (1)
System\Reflection\Metadata\TypeSystem\AssemblyDefinition.netstandard.cs (1)
18return _reader.GetAssemblyName(Name, Version, Culture, PublicKey, HashAlgorithm, flags);
System.Reflection.MetadataLoadContext (1)
System\Reflection\TypeLoading\Assemblies\Ecma\EcmaAssembly.GetName.cs (1)
20Version = ad.Version,