Automatically include DLL version number in file name in Visual Studio

If I set the build version number for the C # DLL in Visual Studio 2008, is it possible for the compiled binary to automatically include this version number in the file name? If I manually rename the file, projects referencing it will be broken. Why is this? Does the file name somehow map to the assembly name inside?

+3
source share
1 answer

The assembly name is the file name, and for assemblies that do not have a strong name, this is the only way the CLR can load the assembly from disk. When you change the assembly name, your application can no longer find the assembly to download, so the application does not work.

, Visual Studio, MSBuild script. , , ( ) .

+6

Source: https://habr.com/ru/post/1720517/


All Articles