Solved

How do I set the version of of  .NET assembly without a recomplie?

Posted on 2008-06-13
4
244 Views
Last Modified: 2013-11-07
How do I set the version of of  .NET assembly without a recomplie?
A customer is quite rigid about running a version less than 0, for example 0.0.2.1, in Beta test.  When user accepts code then they simply want to change the version to 1.0.0.0 and move to production *without* giving the code back to the developer for a recompile.  Sounds simple, but how?
Thanks!
0
Comment
Question by:rowek
  • 2
4 Comments
 
LVL 12

Expert Comment

by:topdog770
ID: 21778839
I don't think it's possible.
0
 

Author Comment

by:rowek
ID: 21784955
I know there are opensource tools that can set any file date, etc.  If I use that approach to set the version will that be a hack or will it run fine?  I cannot just recompile because that will invalidate our test.
0
 
LVL 7

Accepted Solution

by:
photowhiz earned 250 total points
ID: 21808317
The assembly version is used by the .Net runtime so that multiple versions of applications can run at the same time. If it were possible to change it after releasing an assembly, it would break versioning. Don't do that.

If you change the version of a signed assembly it will make the assembly unusable.
0
 

Author Closing Comment

by:rowek
ID: 31466928
Okay, you have confirmed what I thought was true.  I will just have to tell my client that it takes a recompile to change the version in .NET.  Maybe we can keep the source code in escrow and let them do the recompile.  We're not landing space shuttles with our code, but the customer has a process we need to follow.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question