I tried to follow the steps you described and did not get any compile error after adding a new plugin. These are the exact steps I took, let me know if there something I’m doing differently:
-
Open a project
-
Edit->Plugings
-
In the Plugins menu clicked “New Plugin”
-
Selected “Blank” and named it MyTestPlugin (prompted to restart the editor / reload Visual Studio)
-
In VS I right-clicked the project name and selected build
This built the project along with the plugin and complete successfully. Are you able to reproduce the compile error in a new project? If you are please let me know what I’ve missed.