1

I retrieve the product version as follows

System.Reflection.Assembly assembly = System.Reflection.Assembly.GetExecutingAssembly();
System.Diagnostics.FileVersionInfo fvi = System.Diagnostics.FileVersionInfo.GetVersionInfo(assembly.Location);

But where do I set it?

I have tried looking at the project properties and can find AssemblyVersion but not ProductVersion

Kirsten
  • 15,730
  • 41
  • 179
  • 318

1 Answers1

0

enter image description here

The property is PackageVersion

Which shows in the project file as

<Version>1.0</Version>
Kirsten
  • 15,730
  • 41
  • 179
  • 318
  • This question is related. https://stackoverflow.com/questions/909555/how-can-i-get-the-assembly-file-version?rq=1 – Kirsten Feb 13 '23 at 01:38