WinForm new form error
I am building an aplication to save records to excel but i get the following errors. I tried changing the output to Class Library (as suggested on Stack Overflow) but then it said Windows Application only. What can I do?
2 Replies
just found this out, if it helps
I'm not sure I follow. Class Library by itself won't be a runnable application. You should have https://learn.microsoft.com/en-us/dotnet/core/project-sdk/msbuild-props-desktop#usewindowsforms
MSBuild properties for Microsoft.NET.Sdk.Desktop - .NET
Reference for the MSBuild properties and items that are understood by the .NET Desktop SDK, which includes WPF and WinForms.