making auto serial number for each build of project
-
hi all, as I titled i'm going to make serial number or an special uniqe number for my project by every exe that I build of it, is there any way to make it dynamically? especialy in msbuild command?
-
hi all, as I titled i'm going to make serial number or an special uniqe number for my project by every exe that I build of it, is there any way to make it dynamically? especialy in msbuild command?
I found this with google: http://carso-owen.blogspot.com/2007/02/custom-serial-number-generator-in-c-net.html[^]
.45 ACP - because shooting twice is just silly
-----
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
-----
"The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001 -
I found this with google: http://carso-owen.blogspot.com/2007/02/custom-serial-number-generator-in-c-net.html[^]
.45 ACP - because shooting twice is just silly
-----
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
-----
"The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001System.Guid.NewGuid.ToString.ToUpper
-
hi all, as I titled i'm going to make serial number or an special uniqe number for my project by every exe that I build of it, is there any way to make it dynamically? especialy in msbuild command?
Would a unique assembly version number do the job? You can get one using:
[assembly: AssemblyVersion("1.2.*.*")]
See here for how the numbers are generated: http://msdn.microsoft.com/en-us/library/system.reflection.assemblyversionattribute.assemblyversionattribute(v=VS.71).aspx[^]
-
System.Guid.NewGuid.ToString.ToUpper
Yeah, I know, but the various parts of the serial may have special meaning. Since the OP didn't specify that, I thought I'd demonstrate that *anyone* can use google.
.45 ACP - because shooting twice is just silly
-----
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
-----
"The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001