I've got the following in my yml file...
#---------------------------------#
# build configuration #
#---------------------------------#
before_build:
- nuget restore
build:
project: XWing.sln
parallel: true
verbosity: minimal
and i'm always getting this error message...
641
642 nuget restore
643 This folder contains more than one solution file.
644 Command exited with code 1
Ok, so even if i specify it in the UI, the same thing .. but
that's because the build worker detects the presence of a
yml file and uses that.
Is this a bug or am I just being an idiot (again).
- Yes, the file is there. It's reporting that it's finding a few.
- Yes, i've tried using the full path: `project: c:\projects\xwing\XWing.sln'

#1 Posted by Feodor Fitsner Support staff on 30 Jan, 2015 04:49 AM
OK, first set
Ignore appveyor.ymland check if setting SLN on UI works.#2 Posted by Pure Krome on 30 Jan, 2015 04:55 AM
Great idea! ok, lets try.
settings:
output:
#3 Posted by Feodor Fitsner Support staff on 30 Jan, 2015 04:57 AM
:) this comes from "nuget restore"
-Feodor
#4 Posted by Feodor Fitsner Support staff on 30 Jan, 2015 05:05 AM
Should be:
#5 Posted by Pure Krome on 30 Jan, 2015 05:24 AM
Woot! of course!
Q: can i use environment variables here?
eg
nuget restore $(solutionFile)Cannot locate a solution file.
nuget restore<YourSolution.sln>`#6 Posted by Pure Krome on 30 Jan, 2015 05:24 AM
(damn unable to edit previous post) :(
#7 Posted by Feodor Fitsner Support staff on 30 Jan, 2015 05:27 AM
Nope, variables are not supported in
projectthough for nuget restore you can use them asnuget restore %solutionFile%#8 Posted by Pure Krome on 30 Jan, 2015 05:40 AM
Ok.
nuget restore %solutionFile%worked :)um - how did that work? what is
%xxxx%? Can i do that in other places? Is that some generic dos environment thingy?#9 Posted by Feodor Fitsner Support staff on 30 Jan, 2015 05:43 AM
Because
nuget restore %solutionFile%is just a shell command while syntax$(something)in other parts is processed by build agent.I agree adding variables support to "project" would be really nice.
#10 Posted by Pure Krome on 30 Jan, 2015 06:05 AM
Sweet - Issue added.
Pure Krome closed this discussion on 30 Jan, 2015 06:05 AM.
Feodor Fitsner re-opened this discussion on 08 Mar, 2015 06:14 PM
#11 Posted by Feodor Fitsner Support staff on 08 Mar, 2015 06:14 PM
It's been implemented.
Pure Krome closed this discussion on 01 Apr, 2015 08:59 AM.