120
votes

The error:

>------ Skipped Deploy: Project: DrawShape.Android, Configuration: Debug Any CPU ------
>Project not selected to build for this solution configuration 

The configuration in Configuration Manager seems correct:

Configuration Manager

This is the code of the project I am trying to build:

https://github.com/chrispellett/Xamarin-Forms-Shape


What I have tried so far:

Changing from Any CPU to x86 and back.

Setting the Build checkbox to false and then back to true.

3
Select Deploy also from Configuration Manager for android project. - eakgul
That was it, thank you very much. The error (Project not selected to build for this solution configuration) was a bit confusing, plus the answers on this error were all pointing out to the Build checkbox, not the Deploy one. Being new to Xamarin I didn't know that Deploy on Android needed to be checked, and the project in git didn't have it checked for some reason (when creating a new Visual Studio project, the checkbox is indeed checked by default). - Xavier Peña

3 Answers

162
votes

As Kowalski said, You must check Deploy Option on Configuration Manager. RightClick on the solution and select Configuration Manager. Then Check Deploy Option for the startup Project. As this image

enter image description here

19
votes

go To Build => Configuration Manager . then check the deploy checkbox for the startup project . Ps. make sure to select your startup project by right clicking on the project => set as startup project

4
votes

Select Deploy also from Configuration Manager for android project