Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rider Xamarin error MSB1008: Only one project can be specified

Just trying out Rider and came to this problem, if I just build the Xamarin Android project - it builds perfectly fine, however if I try to run it, it fails on deploy step with the following error:

▼ Project Not Found
    Microsoft (R) Build Engine version 15.1.1012.6693
    Copyright (C) Microsoft Corporation. All rights reserved.

    MSBUILD : error MSB1008: Only one project can be specified.
    Switch: Files\JetBrains\Rider

    For switch syntax, type "MSBuild /help"

Not really even sure where to start with this problem

Edit: Forgot to mention - Windows 10

like image 857
Edgar.A Avatar asked Aug 09 '17 08:08

Edgar.A


2 Answers

In our case the Android NDK has been causing the problem. When we removed the path to the NDK (File -> Settings -> Build, Execution, Deployment -> Android), the error was gone.

like image 156
Opinel Avatar answered Nov 09 '22 06:11

Opinel


Your solution is most likely located on a path with spaces in it. Normally you should use quotes on the path to make sure it's not understood as multiple arguments but I'm not sure how to do that on Rider.

I'd just move the solution to a location without spaces in the file path.

like image 27
Timo Salomäki Avatar answered Nov 09 '22 07:11

Timo Salomäki