.NET Framework Bookmark and Share   
 index > MSBuild > Building Same Solution Gives Differences in the Assemblies
 

Building Same Solution Gives Differences in the Assemblies

When using Visual Studio to build a solution twicewithout changing anything, and then doing a binary comparisonon the assemblies (test.exe or test.dll)it shows some minor changes? What would would these changes be from? I am not auto-incrementing the version number or anything like that. Is there some kind of date/time stamp that is gets compiled in with each build? Or maybe the more relevant question would be - is there a way to compare two assemblies to see if they are the same or different?

Thanks for any info.
joshsp

There's areflector plugin called diff that can do this.

http://home.imaginet.co.za/codingsanity/files/Reflector.Diff.dll


KodefuGuru.com - Life Student of the Kodefu Arts
Chris Eargle

There's areflector plugin called diff that can do this.

http://home.imaginet.co.za/codingsanity/files/Reflector.Diff.dll


KodefuGuru.com - Life Student of the Kodefu Arts
Chris Eargle
The only known remaining causes for this I know of are
-- differences in default FileAlignment. Try adding a property of this name with an explicit value. Setting the value in VS may do this.
-- the VS compilers sometimes emit IL specifically for edit and continue that they don't emit on the command line. This is harmless.

If you find any other differences please post an issue on Connect for us.
Dan -- Msbuild
developer on msbuild
DanMoseley - MSFT

You can use google to search for other answers

Custom Search

More Threads

• sgen.exe failed due to spaces in keyfile's path. How can I work around this?
• How to hide TaskItems from SolutionExplorer
• Custom task using app.config
• Multiple fully-qualified paths in a single Task
• Passing AssemblyInfo from a csproj to an MSBuild proj file.
• Secondary references, whats the story morning glory...?
• web service build question: friendly name and debugging
• '<projectname>.csproj.user' not handled correctly with WPF projects.
• Migration from nAnt to msbuild
• MSBuild "Configuration" and "OutDir" Properties