18 references to Version
Microsoft.AspNetCore.App.UnitTests (5)
SharedFxTests.cs (2)
241Assert.Equal(0, reference.Version.Build); 242Assert.Equal(0, reference.Version.Revision);
TargetingPackTests.cs (3)
125var result = (0 == reference.Version.Revision && 0 == reference.Version.Build); 127Assert.True(result, $"In {Path.GetFileName(path)}, {reference.GetAssemblyName()} has unexpected version {reference.Version}.");
Microsoft.Build.Tasks.Core (1)
AssemblyDependency\AssemblyInformation.cs (1)
549Version = entry.Version,
Microsoft.CodeAnalysis (1)
MetadataReader\MetadataReaderExtensions.cs (1)
71reference.Version,
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (1)
Emit\EditAndContinue\AssemblyReferencesTests.cs (1)
508AssertEx.Equal(expected, reader.GetAssemblyReferences().Select(aref => $"{reader.GetString(aref.Name)}, {aref.Version}"));
Microsoft.CodeAnalysis.Test.Utilities (2)
Metadata\MetadataReaderUtils.cs (2)
312.Select(row => $"{reader.GetString(row.Name)} {row.Version.Major}.{row.Version.Minor}");
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (1)
Emit\EditAndContinue\AssemblyReferencesTests.vb (1)
352AssertEx.Equal(expected, reader.GetAssemblyReferences().Select(Function(aref) $"{reader.GetString(aref.Name)}, {aref.Version}"))
Microsoft.DotNet.Build.Tasks.Packaging (2)
GetAssemblyReferences.cs (2)
64referenceItem.SetMetadata("Version", reference.Version.ToString()); 65referenceItem.SetMetadata("AssemblyVersion", reference.Version.ToString());
Microsoft.DotNet.PackageTesting (1)
VerifyClosure.cs (1)
463references[i] = new AssemblyReference(reader.GetString(reference.Name), reference.Version);
Microsoft.DotNet.SharedFramework.Sdk (1)
src\Microsoft.DotNet.PackageTesting\VerifyClosure.cs (1)
463references[i] = new AssemblyReference(reader.GetString(reference.Name), reference.Version);
System.Reflection.Metadata (1)
System\Reflection\Metadata\TypeSystem\AssemblyReference.netstandard.cs (1)
10return _reader.GetAssemblyName(Name, Version, Culture, PublicKeyOrToken, AssemblyHashAlgorithm.None, Flags);
System.Reflection.MetadataLoadContext (2)
System\Reflection\TypeLoading\Assemblies\Ecma\EcmaAssembly.cs (1)
57data.Version = ar.Version.AdjustForUnspecifiedVersionComponents()!;
System\Reflection\TypeLoading\General\Ecma\EcmaHelpers.cs (1)
18Version? version = a.Version.AdjustForUnspecifiedVersionComponents();