Solved

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

Posted on 2008-06-13
4
241 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.

810 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