chairmanPC
Active member
- Joined
- Apr 19, 2021
- Messages
- 38
- Programming Experience
- 10+
It's a .NET framework project. And I get the NullReferenceException when I try to print the project version.
What did I do wrong?
C#:
public Form1()
{
label3.Text = Assembly.GetExecutingAssembly().GetName().Version.ToString(); <-- offending line
InitializeComponent();
}
What did I do wrong?