88 references to Version
Microsoft.CodeAnalysis (36)
Desktop\DesktopAssemblyIdentityComparer.cs (3)
175uint thisVersion = ((uint)identity.Version.Major << 16) | (uint)identity.Version.Minor; 255var version = (AssemblyVersion)identity.Version;
Desktop\DesktopAssemblyIdentityComparer.Fx.cs (1)
161var version = (AssemblyVersion)identity.Version;
MetadataReference\AssemblyIdentityComparer.cs (2)
177(hasPartialVersion || reference.Version != definition.Version))
MetadataReference\AssemblyIdentityMap.cs (8)
46if (currentIdentity.Version == identity.Version) 53if (!allowHigherVersion || currentIdentity.Version < identity.Version) 58if (minHigherVersionCandidate == -1 || currentIdentity.Version < sameName[minHigherVersionCandidate].Key.Version) 85if (comparer(identity.Version, currentIdentity.Version, sameName[i].Value) &&
PEWriter\MetadataWriter.cs (6)
1963version: identity.Version, 1991version: sourceAssembly.Identity.Version, 3702sb.AppendFormat(CultureInfo.InvariantCulture, ", Version={0}.{1}.{2}.{3}", identity.Version.Major, identity.Version.Minor, identity.Version.Build, identity.Version.Revision);
ReferenceManager\CommonReferenceManager.Binding.cs (2)
989return value.Identity.Version != identity.Version;
ReferenceManager\CommonReferenceManager.Resolution.cs (14)
686if (identity.Version == other.Identity.Version) 693if (sameSimpleNameIdentities[0].Identity!.Version > identity.Version) 951if (reference.Version < definition.Version) 954if (minHigherVersionDefinition == -1 || definition.Version < minHigherVersionDefinitionVersion) 957minHigherVersionDefinitionVersion = definition.Version; 962Debug.Assert(reference.Version > definition.Version); 965if (maxLowerVersionDefinition == -1 || definition.Version > maxLowerVersionDefinitionVersion) 968maxLowerVersionDefinitionVersion = definition.Version; 1034reference.Version.Equals(definition.Version) &&
Microsoft.CodeAnalysis.CSharp (11)
Compilation\CSharpCompilation.cs (2)
3344string fileVersion = sourceAssembly.FileVersion ?? sourceAssembly.Identity.Version.ToString(); 3353assemblyVersion: sourceAssembly.Identity.Version,
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (2)
242(left.AssemblyVersionPattern ?? leftIdentity.Version).Equals(right.AssemblyVersionPattern ?? rightIdentity.Version) &&
Symbols\NonMissingModuleSymbol.cs (6)
103if (definitionId.Version > referenceId.Version) 106ErrorCode warning = (definitionId.Version.Major == referenceId.Version.Major && definitionId.Version.Minor == referenceId.Version.Minor) ?
Symbols\ReferenceManager.cs (1)
292throw new NotSupportedException(string.Format(CodeAnalysisResources.ChangingVersionOfAssemblyReferenceIsNotAllowedDuringDebugging, identity, symbol.Identity.Version));
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (3)
Emit\EditAndContinue\AssemblyReferencesTests.cs (3)
350"Lib, " + lib0.Assembly.Identity.Version, 352"Lib, " + lib0.Assembly.Identity.Version, 354"Lib, " + lib0.Assembly.Identity.Version,
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Attributes\AttributeTests_Assembly.cs (1)
33Assert.Equal(new Version(1, 2, 3, 4), other.Assembly.Identity.Version);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Symbols\DefaultInterfaceImplementationTests.cs (1)
62580Version version = assemblyIdentity.Version;
Symbols\Retargeting\RetargetingTests.cs (1)
990System.Version version = assemblyIdentity.Version;
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (2)
EEMetadataReferenceResolver.cs (2)
73if (best.Identity is null || identity.Version > best.Identity.Version)
Microsoft.CodeAnalysis.Features (5)
FindUsages\DefinitionItemFactory.cs (2)
160return new AssemblyLocation(assembly.Identity.Name, assembly.Identity.Version, info.ReferencedThrough.Value.FilePath); 214metadataLocations.Add(new AssemblyLocation(containingAssembly.Identity.Name, containingAssembly.Identity.Version, info.ReferencedThrough.Value.FilePath));
MetadataAsSource\MetadataAsSourceGeneratedFileInfo.cs (2)
71? string.Format(@"[assembly: System.Reflection.AssemblyVersion(""{0}"")]", AssemblyIdentity.Version) 72: string.Format(@"<Assembly: System.Reflection.AssemblyVersion(""{0}"")>", AssemblyIdentity.Version);
PdbSourceDocument\PdbSourceDocumentMetadataAsSourceFileProvider.cs (1)
100var assemblyVersion = symbol.ContainingAssembly.Identity.Version.ToString();
Microsoft.CodeAnalysis.LanguageServer.Protocol (4)
Features\DecompiledSource\AssemblyResolver.cs (4)
91if (assemblies[0].Identity.Version != name.Version) 93Log(FeaturesResources.WARN_Version_mismatch_Expected_0_Got_1, name.Version, assemblies[0].Identity.Version); 111var version = assembly.Identity.Version; 118else if (highestVersion == null || highestVersion.Identity.Version < version)
Microsoft.CodeAnalysis.Scripting (2)
Hosting\AssemblyLoader\InteractiveAssemblyLoader.cs (2)
279info.Identity.Version == identity.Version); 299identity.Version,
Microsoft.CodeAnalysis.Scripting.Desktop.UnitTests (2)
GlobalAssemblyCacheTests.cs (2)
52Assert.Equal(new Version(4, 0, 0, 0), name.Version); 100Assert.True(name.Version >= new Version("2.0.0.0"), "netstandard version must be >= 2.0.0.0");
Microsoft.CodeAnalysis.Test.Utilities (2)
Mocks\TestMissingMetadataReferenceResolver.cs (2)
46string nameAndVersion = referenceIdentity.Name + (referenceIdentity.Version != AssemblyIdentity.NullVersion ? $", {referenceIdentity.Version}" : "");
Microsoft.CodeAnalysis.UnitTests (12)
MetadataReferences\AssemblyIdentityDisplayNameTests.cs (2)
85Assert.Equal(fusion.Version, id.Version);
MetadataReferences\AssemblyIdentityExtensions.cs (1)
26result.Version = identity.Version;
MetadataReferences\AssemblyIdentityTests.cs (9)
100Assert.Equal(new Version(1, 2, 3, 4), id.Version); 111Assert.Equal(new Version(1, 2, 3, 4), id.Version); 145Assert.Equal(new Version(0, 0, 0, 0), id.Version); 156Assert.Equal(new Version(0, 0, 0, 0), id.Version); 167Assert.Equal(new Version(0, 0, 0, 0), id.Version); 178Assert.Equal(new Version(0, 0, 0, 0), id.Version); 189Assert.Equal(new Version(0, 0, 0, 0), id.Version); 260Assert.Equal(new Version(1, 2, 3, 4), id.Version); 283Assert.Equal(new Version(1, 2, 3, 4), id.Version);
Microsoft.CodeAnalysis.VisualBasic (2)
Symbols\ReferenceManager.vb (2)
130Return identity1.Version = identity2.Version
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (4)
Attributes\AssemblyAttributes.vb (1)
41Assert.Equal(New Version(1, 2, 3, 4), other.Assembly.Identity.Version)
Emit\EditAndContinue\AssemblyReferencesTests.vb (3)
201"Lib, " & lib0.Assembly.Identity.Version.ToString(), 203"Lib, " & lib0.Assembly.Identity.Version.ToString(), 205"Lib, " & lib0.Assembly.Identity.Version.ToString()