Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

GUID increment

Status
Not open for further replies.

sm43

Programmer
Dec 1, 2002
155
US

The way to NOT generate a new GUID for a .Net Assembly every time it compiles is to set the Increment Build property in Project Properties -> Configuration Properties -> Advanced. I recently had a lot of trouble because the GUI was incrementing at each compile & I was ending up with 10's of guid's (10's of entries for that particular dll in Windows Registry).

I'm trying to make sure i avoid this in the future.

Thanks!
Saad
 
Look in your AssemblyInfo.cs and set the version number to an explicit value: "1.0.0.0" instead of the default "1.0.*" which results in the version number always incrementing (which means the GAC thinks you're a whole new assembly).

Chip H.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top