简体   繁体   中英

Build number in C# or VB.NET

In the custom process in our company we don't always deploy the small applications but instead we simply take the .exe file from debug.

Is there any way to keep a revision to this small executables?

Like an autoincrement that grows each time we compile it?

Could this be handled by a "prebuild" script in Visual Studio? - this would be ideal because it would work in both c# and vb.net.

I'm writing this in case somebody reaches here:

there is a AssemblyInfo.vb file in the project containing

<Assembly: AssemblyVersion("1.0.0.0")> 
<Assembly: AssemblyFileVersion("1.0.0.0")> 

replace it with

<Assembly: AssemblyVersion("1.0.*")>
'<Assembly: AssemblyFileVersion("1.0.0.0")> 

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM