Solved

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

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

760 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now