Can't build the gain plugin example

On a new PC, installed Visual Studio 2019, followed instructions to build vst3 plugin, opened project in Visual Studio, built, got this error:

2>------ Build started: Project: GainDemo_VST3, Configuration: Debug x64 ------
2>LINK : error LNK2001: unresolved external symbol _DllMainCRTStartup
2>C:\Users\dino\Documents\JUCE\0001\GainDemo\Builds\VisualStudio2019\x64\Debug\VST3\GainDemo.vst3 : fatal error LNK1120: 1 unresolved externals
2>Done building project “GainDemo_VST3.vcxproj” – FAILED.
========== Build: 1 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Am stuck right at the start, please help.

The mistake I was making was taking the app project and trying to switch it to a plugin instead of taking the plugin project and using that directly. Makes sense now I understand that. I assumed that it would switch the platform from a single example.