Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 954051
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T00:08:59+00:00 2026-05-16T00:08:59+00:00

I created a simple Hello World application in VS2005. It’s a straight-forward console application;

  • 0

I created a simple “Hello World” application in VS2005. It’s a straight-forward console application; it only contains the following lines:

Console.WriteLine("Hello World");
Console.ReadLine();

When I tried to rebuild the same console application WITHOUT performing any changes (just press the rebuild button), I get a subtly different executable. (I generated a SHA-1 hash from both the 1st and 2nd generated executable, and it’s different!)

Why is it different when there are no code changes? What actually changed? I used a hex editor to compare and only saw a couple different bytes.

I guess my ultimate question is, how can I know if an “assembly” really did change? (Of course without looking at File versions, file size, etc)

EDIT

So far, we’ve established that the difference lies in the PE header (timestamp and some debug data). Before I re-invent the wheel, is there an “assembly comparison” tool that ignores the PE header?

Thanks,
Ian

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T00:09:00+00:00Added an answer on May 16, 2026 at 12:09 am

    The differences will be

    • the timestamp in the PE header
    • the GUID of the debug data, if present

    (and maybe something more, as per the other output you’ve posted?) To see these, run dumpbin /all /rawdata:none on both assemblies in a VS command prompt.

    To do this properly you’d have to write a comparison tool that understood this and ignored those bytes – or took copies of the executables, cleared the timestamp and GUID and then compared those versions. Or, at a pinch, you could use something like fc /b as controlfreak suggests and assume that if there are < 20 bytes different (4 for the timestamp, 16 for the GUID) then it’s probably the same.

    You may well get away with using an assembly with the timestamp cleared – AFAIK it’s only used to cache exported symbol offsets in other DLLs if you hook that up – but it’s probably safer to leave as is. If you actually need binary-identical assemblies I suggest you change your processes so you never clean-build unless you really need it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created a simple vc++ console application and try to print Hello World.
I have created a simple hello world application in xcode using the command line
I have created a simple Hello World Application using Flash Builder Burrito SDK. I
I created a simple asm hello world x86 bootloader, I'd like to embed it
I'm following this tutorial to create a simple Hello World extension for Chrome: http://code.google.com/chrome/extensions/getstarted.html
I`ve created simple hello world-like plugin which draws red box. Аfter embedding into xulrunner
I have created a simple command line tool that outputs hello world. This is
I created a sample hello world application using Flash Builder 4.5.1 (with the update
I've created a WCF service library with a simple 'hello world' test service and
I developed a simple Ruby Hello World application. Now i would like to consume

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.