Right Click Project > Edit Project File append to project file to enable native code compilation
Install nuget package
Edit Program.cs and add to Main
Edit Project File and append
to suppress trimming error warning on compilation
restore comsupport for WinForms