سؤال

Hi i want to ask that when we build our project in VS we know that exe get automatically created but my client wants that exe with version number and every time i click on build and the new exe will create with the newer version number.So is there any possibility for this version writing ,i think "no" as i have never seen any exe with version number ?So please clear my confusion .However ,i know that when we publish our software it creates "Publish version " for us but my client do not want publish he wants just exe !!

هل كانت مفيدة؟

المحلول

In the AssemblyInfo.cs file, change :

[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

by

[assembly: AssemblyVersion("1.0.0.*")]
//[assembly: AssemblyFileVersion("1.0.0.0")]

(that will change last number with a number in relation with when you build (time only))

or

[assembly: AssemblyVersion("1.0.*")]
//[assembly: AssemblyFileVersion("1.0.0.0")]

(that will change 2 lasts numbers with a number in relation with when you build (date.time))

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top