Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2008-06-13
4
Medium Priority
?
254 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 1000 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

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

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

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…

604 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