how do i make the [assembly: AssemblyVersion("1.0.*")] in the assemblyInfo.cs for aboutbox to be similar with the publish version at the project property?
currently it seem that i have to enter twice.. i refered to this link example, and i don get the result as expected..
Use ApplicationDeployment.CurrentDeployment.CurrentVersion to get the Publish version
Just comment out the line:
[assembly: AssemblyFileVersion("1.0.0.0")]
in AssemblyInfo.cs file. So, two last lines of that file will be:
[assembly: AssemblyVersion("1.0.*")]
//[assembly: AssemblyFileVersion("1.0.0.0")]
Rebuild the project and your Assembly version and the .dll file version will be identical.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With