Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / February 2007

Tip: Looking for answers? Try searching our database.

Updating AssemblyInfo

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mike - 01 Feb 2007 18:04 GMT
I have been banging my head on this one for a few days and can't seem
to find an answer anywhere.
I have written an app that updates a project's version number in the
assemblyinfo.vb file during the Prebuild event.  With the aid of
pauses in execution, I can see that the version number is, in fact,
getting properly set.  However, when VS2005 actually builds the
project, it uses whatever the old version number was.  However, if I
manually change the value inside VS2005, it builds with the proper
version number.
My question is, are the project files that are about to be compiled
cached prior to any pre-build events being run?
If so, is there any way to clear that and force a recaching after the
prebuild event?
Or, if not, can you think of any other reason why this update would
not hold?

Thank you in advance.
Mike
Mike - 02 Feb 2007 22:29 GMT
Update:
In further testing, it seems the process described above does work
when compiling an EXE but fails when compiling a DLL.  The process
used is the same regardless of the project type so I am even more
stumped as to the problem.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.