As the title suggests I need to assign an application a custom file and/or product version by building a project from Visual Studio.
I know you can assign a build number from an application publish but I am not publishing these applications, I am simply building "release" files.
Is there a way within Visual Studio to specify these file versions before I build the application?
Thanks in advance!

Yes, you can specify File/Product version by
AssemblyInfo.csbefore you build the application.First, the File version looks for the attribute
AssemblyFileVersionin theAssemblyInfo.csfile. So you can specify the File version by setting the valueAssemblyFileVersion. I change theAssemblyFileVersionvalue from1.0.0.0to2.0.0.0:Second, ProductVersion first looks to see if the assembly containing the main executable has the
AssemblyInformationalVersionattribute on it. If this attribute exists, it is used for Product Version. If this attribute does not exist, both properties use theAssemblyFileVersioninstead.So, in your project, open the AssemblyInfo.cs file. In this file, I added a line like this:
Then after build is complete. The file version is
2.0.0.0and the product version is4.0.0.0.