Automatically include DLL version number in file name in Visual Studio -


If I set the assembly version number for C # DLL in Visual Studio 2008, then what compiled binary is automatically Is it possible to include this version number in the file name? If I change the file name manually, then why is it like referencing projects? Does the file name map in an assembly name somehow?

The assembly name is the name of the file, and for those assemblies that do not have a strong name, it The only way is that CLR can load the assembly from the disc. When you change the assembly name, your application can no longer be used to load the assembly, so the application fails.

To automatically generate the version number in the assembly name, you will not be able to do this from Visual Studio, but it is not impossible to do this using an MSBuild build script. Do not advise to do this because the version information is already stored in the assembly's manifest and most people will not trust the version number in the file name (because it Not teak) and will also examine the manifest.


Comments

Popular posts from this blog

asp.net - Javascript/DOM Why is does my form not support submit()? -

sockets - Delphi: TTcpServer, connection reset when reading -

javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -