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 8771581
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T17:49:31+00:00 2026-06-13T17:49:31+00:00

Background: I have been charged with trying to come up with a new way

  • 0

Background:

I have been charged with trying to come up with a new way to compare dlls and exes that use AssemblyInfo to embed a version number. Every time we do a new build, the version gets incremented accordingly. However, when it comes time to deploy the new version, we only want to copy dlls and exes that have actually changed, but the embedded version number makes it seem like this is always the case.

To get around this, the system currently just relied on comparing the filesize, but my task has arisen from noticing this doesn’t appear to be good enough since we had a failure to deploy a new exe despite the fact it changed; they just happen to have the same filesize. We don’t know how often this is happening, so we need to do something about it, but if possible we’d like to still be smart about replacing the dlls and exes so users aren’t forced to shut the UI down every time we really only need to replace files the UI doesn’t use.

My question, therefore, is whether there is a clever way to compare exes and dlls with embedded versions from use of AssemblyInfo while ignoring that metadata itself. The more I’ve looked around the more it seems like this probably isn’t possible, but I thought it was worth asking before giving up and switching to replacing everything every time.

Appreciate the help!

Edit: I suppose one thing I was really hoping would be possible is doing a bitwise comparison with certain offsets. Does AssemblyInfo always compile in at a particular point, such as being a header or footer of sorts that can be accounted for in the comparison?

  • 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-06-13T17:49:33+00:00Added an answer on June 13, 2026 at 5:49 pm

    Eric Lippert has already covered this:

    Is compiling the same C# program twice guaranteed to produce the same binary output?
    No.
    Well, that was an easy blog to write.
    …
    The C# compiler by design never produces the same binary twice. The C# compiler embeds a freshly generated GUID in every assembly, every time you run it, thereby ensuring that no two assemblies are ever bit-for-bit identical

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

Sidebar

Related Questions

Background : I have been trying to display a sentence with Bold and Italic
I come from a Java background and have been using C# for the last
Background: I have a WebPart that makes use of the SPCalendarView control and in
I have been trying to animate a background position move from a div. The
I have been trying to change the color of the gray that surrounds my
I have been all over the place, seems the UITableView with a static background
Background I have a function that takes a config object as an argument. Within
Background I have a dimension table that has a single record for each day.
I know that there have been a number of posts regarding the height:100% declaration
I am trying to figure out the proper way to use NSManagedObjectContexts when you

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.