Compartir a través de


AssemblyName.Version Property

Gets or sets the major, minor, build, and revision numbers of the assembly.

Namespace: System.Reflection
Assembly: mscorlib (in mscorlib.dll)

Syntax

public Version Version { get; }

Property Value

A Version object representing the major, minor, build, and revision numbers of the assembly.

Remarks

The Version for an assembly is in the following form:

4.0.0.0

This property and class enables system components to be changed without updating the firmware, if the system components don't change the signature of any internal call.

The runtime will try to solve the assembly dependency in the strictest way, matching the exact version. If the runtime can’t solve the dependency, the runtime will fail to load the application.

When deploying to a device, Visual Studio will automatically check that the version of the system assemblies matches the need of the application. If the version doesn't match, Visual Studio will deploy one additional copy of the assembly together with the application, in the deployment sector.

See also the System.Version class.

Version Information

Available in the .NET Micro Framework versions 4.0, 4.1, and 4.2.

See Also

Reference

AssemblyName Class
AssemblyName Members
System.Reflection Namespace