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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T01:03:10+00:00 2026-05-24T01:03:10+00:00

I know this may sound silly, but I’d like to put a version in

  • 0

I know this may sound silly, but I’d like to put a version in my FileVersion (since it’s not used for referencing, but to indicate what version the file is) that isn’t in the standard System.Version Format of major.minor.build.revision.

To be frank, I’d like to put my repository changeset hash in there, because It accurately represents the version of the file. (I.e the dll generated from the given changeset).

Since the Attribute takes a string input (since Version isn’t constant), will I break anything by doing this?

Would AssemblyInformationVersionAttribute be better suited for this task? Or is this just flat out going to cause me pain when something assumes it’s a MS Formatted Version #?

  • 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-24T01:03:11+00:00Added an answer on May 24, 2026 at 1:03 am

    You are exposing something that’s available to anybody. The unmanaged version resource that’s generated from the attributes is easily accessible. FileVersionInfo class in .NET. Do note the FileMajor/MinorPart properties, they are integers, not strings. So, yes, the odds that one of those anybody is going to fall over are slim but not zero. [assembly: AssemblyInformationalVersion(“blah”)] doesn’t help, that becomes the “Product version”.

    That doesn’t leave anything but [AssemblyTitle]. A bit bewildering to your users but that’s all.

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

Sidebar

Related Questions

I know this may sound silly but it seems that, my version of TortoiseSVN
This may be a no-brainer for the WPF cognoscenti, but I'd like to know
This question may be too product specifc but I'd like to know if anyone
I know that may sound silly, but I'm trying to submit a form on
I know this may sound crazy, but I swear that on two separate ocassions
I know that my this question may sound pathetic to you but as a
I know this may be a noob question, but it's bugging the heck out
I know this is not programming directly, but it's regarding a development workstation I'm
This question may sound too silly, however , I don't find concrete answer any
this may sound kind of convoluted but basically i want to have a form

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.