How do I compile without the console in VS2019

So would I copy the project into an empty project, but then How do I reference the libraries? is there a setting in the project properties?

It’s not clear to me what you mean by “compile without the console”.