'Removed AssemblyInfo.cs from .NET6 migrated app, now the app doesn't grab the version number
This app started a few years ago and I recently migrated to .NET6. After migration, I found that AssemblyInfo was still hanging around so I deleted it, now my app doesn't get the FileVersion that I have set in the project properties. I have another app that was started as a .NET5 app and it works perfectly.
This is what I use to put the "build version" on the title bar.
this.Text += " " + FileVersionInfo.GetVersionInfo(System.Reflection.Assembly.GetExecutingAssembly().Location).FileVersion;
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
