I develop with VS2017 with c#.
Is there a way tgat each time I compile my project ,the version of my exe will Increase ?
I develop with VS2017 with c#.
Is there a way tgat each time I compile my project ,the version of my exe will Increase ?
This questions has already been asked/answered here and here; both of those answers refer to the functionality built-in to Visual Studio. However, it has a drawback that the versions generated are based on the time of the build, which is non-deterministic. In other words, the same version of the sources will produce a different version every time you build.
If you want a more deterministic version and you're using Git for source control, there are a few NuGet packages that can generate version information based on your commit history. That is, it increments each time you commit; but a build based on a given commit should always produce the same version. The one I've used is Nerdbank.GitVersioning. It's super easy to use - just install the NuGet package, delete the existing AssemblyFileVersion and AssemblyVersion attributes, and you're probably good to go (unless you've customized your build in some way; but then you'd know best).