I am using Microsoft Visual C# 2010 Express. I have to change the version of my exe file. Please tell me how to do it, either by my C# code, or by batch file.
You can also do it by right-clicking on the unopened file and clicking on the “Rename” option. Simply change the extension to whatever file format you want and your computer will do the conversion work for you.
When you find the file, right click it. Select the rename option from the menu, and then type the new file extension. Step 4: Then there will pop up a warning window on the page. If you confirm to change it, click Yes to finish the operation.
To change a whole batch of files at once: Select each of the files. You can select a group of contiguous files by click the first one and then Shift+clicking the last one; you can select any number of files by Ctrl+clicking each file; or to select all files in a folder, press Ctrl+A.
Somewhere in your code (favorably in AssemblyInfo.cs
in the Properties
folder of your project), put this:
[assembly: AssemblyVersion("1.0.0.0")]
Also possible is the file version attribute:
[assembly: AssemblyFileVersion("1.0.0.0")]
Make sure that you only have one instance of AssemblyVersion
and/or AssemblyFileVersion
attributes in a single assembly - everything else won't compile.
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