If you don’t enable public key authentication, VisualGDB will remember your password for this connection. It is recommended to check the “setup public key” checkbox, so that VisualGDB will automatically generate an public/private keypair, store it in your Windows account’s key container and setup the Raspberry PI box to use it. Provide the IP address of your Raspbery PI box, the user name ( “pi” by default) and password ( “raspberry” by default).If you have not created any Raspberry PI projects before, select “Create a new SSH connection” on the next page.As we are making a simple “Hello, World” application, keep “Create a new project” selected and press “Next”. The VisualGDB Linux Project Wizard will start.Then select “VisualGDB->Linux Project Wizard”. On your Windows machine start Visual Studio, select “File->New project”.Please download and install the latest VisualGDB.
The same steps will also work with Raspberry Pi 2.
This tutorial demonstrates how to build and debug a simple Raspberry PI application using Visual Studio.