Are you trying to use the Raspberry Pi toolchain? That won't work, the Raspberry ARM CPU is quite different from the Nano Pi
You need to configure it to use the on board GCC build tools that are supplied on the Nano Pi
Just create a new project using one of the options apart from Blink, Console is a good start
If its the 1st time you've created a project it will ask you for the IP address, name(fa) and password(fa) of your target (make sure its connected to your PC or on your PC's network, and do ifconfig to get the IP)
if you already entered an IP address beforehand VS2017 is annoyingly stubborn about changing it, I think its bugged, or I have just not found the right way to give it other options
Just go to project properties and change the remote build machine IP details directly,
Or go to the Debug>Options>CrossPlatform>Connection Manager and delete all the connections, even if yours is there.. when you attempt to build it will ask you to re-enter the connection info for your target.
You will also need to make sure you have GDB on your Nano Pi (sudo apt-get install gdb) since it needs that to communicate with Visual Studio
Make sure you are using the Debug, ARM >IP address(ARM) configuration and all should be good.
Then its a simple case of build and run...keep a Linux console window open on your PC to see the output and build your project as normal..
hope this helps