17 writes to Version
mscorlib (5)
system\reflection\assembly.cs (5)
1989an.Version = null; 2051an.Version = null; 2091partialName.Version = null; 2915an.Version = GetVersion(); 2917an.Version = version;
PresentationCore (1)
Core\CSharp\System\Windows\Navigation\BaseUriHelper.cs (1)
242asmName.Version = new Version(assemblyVersion);
System.Data (1)
fx\src\data\System\Data\SqlClient\SqlConnection.cs (1)
2213asmRef.Version = TypeSystemAssemblyVersion;
System.Data.Entity (1)
System\Data\Objects\Internal\EntityProxyFactory.cs (1)
70assemblyName.Version = new Version(1, 0, 0, 0);
System.Management (2)
WmiGenerator.cs (2)
4967assemblyName.Version = curAssemblyName.Version; 4989assemblyName.Version = new Version(VSVERSION);
System.Runtime.Serialization (1)
System\Runtime\Serialization\XmlObjectSerializerReadContextComplex.cs (1)
405an.Version = null;
System.Web (2)
Compilation\XsdBuildProvider.cs (1)
78aName.Version = new Version(3, 5, 0, 0);
Handlers\AssemblyResourceLoader.cs (1)
552realName.Version = new Version(parts[1]);
System.Web.Extensions (1)
Handlers\ScriptResourceHandler.cs (1)
138realName.Version = new Version(parts[1]);
System.Xml (1)
System\Xml\Serialization\CodeGenerator.cs (1)
1734assemblyName.Version = new Version(1, 0, 0, 0);
UIAutomationClient (2)
MS\Internal\Automation\ProxyManager.cs (2)
380proxyAssemblyName.Version = ourAssembly.Version; 401proxyAssemblyName.Version = assemblyName.Version;
109 references to Version
mscorlib (4)
system\reflection\assembly.cs (2)
2108if (ainfo.Version > ainfoBest.Version)
system\runtime\interopservices\typelibconverter.cs (1)
433asmBldr.DefineVersionInfoResource(strProductName, asmName.Version.ToString(), null, null, null);
system\security\util\xmlutil.cs (1)
114assemblyVersion = an.Version.ToString();
PresentationBuildTasks (3)
BuildTasks\Ms\Internal\MarkupCompiler\MarkupCompiler.cs (1)
2387s_generatedCode_ToolVersion = assemblyName.Version.ToString();
Framework\System\Windows\Markup\XamlTypeMapper.cs (1)
480if (assemblyName.Version != null)
Shared\System\Windows\Markup\ReflectionHelper.cs (1)
528if (assemblyName.Version != null)
PresentationCore (3)
Core\CSharp\System\Windows\Navigation\BaseUriHelper.cs (1)
488string version = currAssemblyName.Version?.ToString();
Shared\MS\Internal\SafeSecurityHelper.cs (2)
186Version reqVersion = assemblyName.Version; 193Version curVersion = curAsmName.Version;
PresentationFramework (10)
src\Framework\MS\Internal\AppModel\ResourceContainer.cs (1)
289string assemblyVersion = assemblyInfo.Version.ToString();
src\Framework\MS\Internal\AppModel\XappLauncher.cs (1)
1229requiredVersion = assyName.Version.ToString();
src\Framework\System\Windows\Documents\Serialization\SerializerDescriptor.cs (4)
118sd._assemblyVersion = factoryType.Assembly.GetName().Version; 120sd._winFXVersion = typeof(System.Windows.Controls.Button).Assembly.GetName().Version; 237if (typeof(System.Windows.Controls.Button).Assembly.GetName().Version == sd._winFXVersion && 239plugIn.GetName().Version == sd._assemblyVersion)
src\Framework\System\Windows\Markup\Baml2006\Baml2006SchemaContext.cs (1)
487if (assemblyName.Version != null || assemblyName.CultureInfo != null || publicKeyToken != null)
src\Framework\System\Windows\Markup\Baml2006\Baml6Assembly.cs (1)
53if (assemblyName.Version != null || assemblyName.CultureInfo != null || publicKeyToken != null)
src\Framework\System\Windows\Standard\Utilities.cs (1)
30private static readonly Version _presentationFrameworkVersion = Assembly.GetAssembly(typeof(Window)).GetName().Version;
src\Framework\System\Windows\SystemResources.cs (1)
965string packUri = string.Format("pack://application:,,,/{0};v{1};component/{2}", asemblyName.Name, asemblyName.Version.ToString(), resourceName);
SMSvcHost (1)
System\ServiceModel\Activation\WorkerProcess.cs (1)
225Version ourVersion = Assembly.GetExecutingAssembly().GetName().Version;
System.Activities (18)
Microsoft\VisualBasic\Activities\XamlIntegration\VisualBasicExpressionConverter.cs (3)
416if (this.wrappedReference.AssemblyName.Version != null && !this.wrappedReference.AssemblyName.Version.Equals(assemblyName.Version))
System\Activities\Expressions\AssemblyNameEqualityComparer.cs (8)
53if (x.Version != null && y.Version != null) 55if (x.Version != y.Version) 60else if (!(x.Version == null && y.Version == null)) 106if (obj.Version != null) 108hashcode ^= obj.Version.GetHashCode();
System\Activities\Expressions\AssemblyReference.cs (6)
117if (reference.Version != null && !reference.Version.Equals(assemblyName.Version)) 180Version curVersion = curAsmName.Version; 184Version reqVersion = assemblyName.Version; 260if (assemblyName.Version != null || assemblyName.CultureInfo != null || publicKeyToken != null)
System\Activities\XamlIntegration\TextExpressionCompiler.cs (1)
156new CodeAttributeArgument(new CodePrimitiveExpression(currentAssemblyName.Version.ToString())));
System.Activities.Presentation (6)
System.Activities.Presentation\System\Activities\Presentation\Validation\ValidationService.cs (1)
142validationKeyPath.AppendFormat("{0}{1}{2}", "v", currentAssemblyName.Version.ToString(), "\\");
System.Activities.Presentation\System\Activities\Presentation\View\TypeBrowser.xaml.cs (5)
541if (name.Version != null) 544sb.Append(name.Version.Major); 546sb.Append(name.Version.Minor); 548sb.Append(name.Version.Build); 550sb.Append(name.Version.Revision);
System.AddIn (4)
System\Addin\Hosting\ActivationWorker.cs (2)
163name1.Version != name2.Version)
System\Addin\Hosting\AddInActivator.cs (1)
707return new StrongName(keyBlob, assemblyName.Name, assemblyName.Version);
System\Addin\MiniReflection\MetadataReader\AssemblyInfo.cs (1)
29m_Version = AN.Version;
System.Configuration (1)
System\Configuration\ClientConfigPaths.cs (1)
471_productVersion = exeAssembly.GetName().Version.ToString();
System.Data (8)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Validation\ValidationService.cs (1)
142validationKeyPath.AppendFormat("{0}{1}{2}", "v", currentAssemblyName.Version.ToString(), "\\");
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\TypeBrowser.xaml.cs (5)
541if (name.Version != null) 544sb.Append(name.Version.Major); 546sb.Append(name.Version.Minor); 548sb.Append(name.Version.Build); 550sb.Append(name.Version.Revision);
fx\src\data\System\Data\SqlClient\SqlConnection.cs (2)
2208if (asmRef.Version!=TypeSystemAssemblyVersion) { 2210asmRef.Version.ToString(), TypeSystemAssemblyVersion.ToString());
System.Data.Entity (6)
System\Data\Common\EntityUtil.cs (6)
1918if (targetAssemblyName.Version == null || assemblyName.Version == null) 1923if ((targetAssemblyName.Version.Major != assemblyName.Version.Major) || 1924(targetAssemblyName.Version.Minor != assemblyName.Version.Minor))
System.Data.Entity.Design (1)
System\Data\EntityModel\Emitters\AttributeEmitter.cs (1)
197typeof(EntityClassGenerator).Assembly.GetName().Version.ToString());
System.Data.SqlXml (1)
System\Xml\Xsl\Xslt\XsltLoader.cs (1)
1201if ((publicKeyToken == null || publicKeyToken.Length == 0) && asmName.Version == null) {
System.Drawing (1)
commonui\System\Drawing\Design\ToolboxItem.cs (1)
283return this.AssemblyName.Version.ToString();
System.Management (11)
Instrumentation\AssemblyNameUtility.cs (10)
31 return an.Name + "_SN_"+BinToString(an.GetPublicKeyToken()) + "_Version_"+an.Version.Major +"."+ an.Version.Minor; // +"."+ an.Version.Build+"."+an.Version.Revision; 37 return an.Name + "_SN_"+BinToString(an.GetPublicKeyToken()) + "_Version_"+an.Version.Major +"."+ an.Version.Minor+"."+ an.Version.Build+"."+an.Version.Revision; 44return an.Name + "_SN_"+BinToString(an.GetPublicKeyToken()) + "_Version_"+an.Version.Major +"."+ an.Version.Minor+"."+an.Version.Build +"."+ an.Version.Revision;
WmiGenerator.cs (1)
4967assemblyName.Version = curAssemblyName.Version;
System.Runtime.Serialization (1)
System\Runtime\Serialization\CodeExporter.cs (1)
520generatedCodeAttribute.Arguments.Add(new CodeAttributeArgument(new CodePrimitiveExpression(assemblyName.Version.ToString())));
System.ServiceModel (1)
System\ServiceModel\Description\ServiceContractGenerator.cs (1)
555generatedCodeAttribute.Arguments.Add(new CodeAttributeArgument(new CodePrimitiveExpression(assemblyName.Version.ToString())));
System.Web (7)
Compilation\AssemblyResolver.cs (4)
223version = resolvedAssemblyName.Version; 281if (assembly.GetName().Version != aName.Version) { 302if ((referenceAssemblyType == ReferenceAssemblyType.FrameworkAssembly && resolvedAssemblyVersion < name.Version)
Configuration\CompilationSection.cs (1)
733if ((publicKeyToken == null || publicKeyToken.Length == 0) && asmName.Version == null) {
Handlers\AssemblyResourceLoader.cs (2)
261HttpUtility.UrlEncode(assemblyName.Version.ToString(4)), 420string assemblyVersion = assemblyName.Version.ToString();
System.Web.Entity.Design (1)
System\Data\WebControls\Design\EntityDataSourceDesignerHelper.cs (1)
671&& assembly.GetName().Version.Major > 5)
System.Web.Extensions (4)
Handlers\ScriptResourceHandler.cs (1)
695url.Append(assemblyName.Version);
UI\AssemblyCache.cs (1)
50version = new AssemblyName(assembly.FullName).Version;
UI\ScriptReference.cs (1)
310string version = assemblyName.Version.ToString();
UI\ScriptResourceAttribute.cs (1)
348output.AppendLine("// Version: " + assemblyName.Version.ToString());
System.Web.Services (1)
System\Web\Services\Description\WebCodeGenerator.cs (1)
52decl.Arguments.Add(new CodeAttributeArgument(new CodePrimitiveExpression(version == null ? assemblyName.Version.ToString() : version)));
System.Windows.Forms (1)
winforms\Managed\System\WinForms\ThreadExceptionDialog.cs (1)
212detailsTextBuilder.Append(SR.GetString(SR.ExDlgMsgLoadedAssembliesEntry, name.Name, name.Version, fileVer, name.EscapedCodeBase));
System.Workflow.Activities (3)
Common\TypeSystemHelpers.cs (3)
148Version thatVersion = thatName.Version; 149if (thatVersion != null && thatVersion != emptyVersion && thatVersion != thisName.Version) 245if (thatVersion != null && thatVersion != emptyVersion && thatVersion != thisName.Version)
System.Workflow.ComponentModel (3)
Shared\TypeSystemHelpers.cs (3)
147Version thatVersion = thatName.Version; 148if (thatVersion != null && thatVersion != emptyVersion && thatVersion != thisName.Version) 244if (thatVersion != null && thatVersion != emptyVersion && thatVersion != thisName.Version)
System.Xml (3)
System\Xml\Serialization\CodeExporter.cs (1)
109decl.Arguments.Add(new CodeAttributeArgument(new CodePrimitiveExpression(version == null ? assemblyName.Version.ToString() : version)));
System\Xml\Serialization\Compilation.cs (2)
331writer.WriteLine("[assembly:System.Reflection.AssemblyVersionAttribute(\"" + types[0].Assembly.GetName().Version.ToString() + "\")]"); 455string assemblyVersion = types[0].Assembly.GetName().Version.ToString();
UIAutomationClient (2)
MS\Internal\Automation\ProxyManager.cs (2)
380proxyAssemblyName.Version = ourAssembly.Version; 401proxyAssemblyName.Version = assemblyName.Version;
WindowsBase (3)
Shared\MS\Internal\SafeSecurityHelper.cs (2)
186Version reqVersion = assemblyName.Version; 193Version curVersion = curAsmName.Version;
Shared\System\Windows\Markup\ReflectionHelper.cs (1)
389if (assemblyName.Version != null)
XamlBuildTask (1)
Microsoft\Build\Tasks\Xaml\ClassGenerator.cs (1)
83new CodeAttributeArgument(new CodePrimitiveExpression(assemblyName.Version.ToString())));