Get the exact same build when compiling in .NET.

Possible duplicate:
Determine if .NET assemblies were built from a single source

I want to compare assemblies in .NET to check for any changes. After inspecting the website, I found out that the compiler changes the build date, version version (unless explicitly stated), and much more. Is there possibly an option in msbuild to get exactly the same result with two different assemblies?

+4
source share
2 answers

A Visual Studio project has a file called AssemblyInfo that contains metadata about the assembly.

You can install version information there.

The following is an example section in an AssemblyInfo file:

 // Version information for an assembly consists of the following four values: // // Major Version // Minor Version // Build Number // Revision // // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] [assembly: AssemblyFileVersion("1.0.0.0")] 
+1
source

Using ILDASM to ignore specific tokens is a possible approach. Thanks to the generosity.

0
source

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


All Articles