Folder contains more than one project or solution file
Hi,
I started receiving the below error on my builds and I can't figure out what's causing it:
"Specify which project or solution file to use because the folder contains more than one project or solution file"
I looked for duplicate .cproj and .sln files but didn't find any extra in our repo, even when I remoted into the machine.
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
1 Posted by Ilya Finkelshte... on Jul 05, 2017 @ 06:56 PM
Can you please check that on actual VM during build with
dir /s *sln && dir /s *csproj
command called before build and send it to us? Please feel free to make conversation Private.2 Posted by mbreakey on Jul 05, 2017 @ 08:39 PM
With -Recurse on as well?
3 Posted by mbreakey on Jul 05, 2017 @ 08:40 PM
Also - on this machine I'm not building - I'm downloading the built package from a previous AppVeyor project artifact.
4 Posted by Ilya Finkelshte... on Jul 05, 2017 @ 08:43 PM
Yes, that's why I mentioned
-s
, it does recurse incmd
, but feel free to usePowerShell
:)5 Posted by Ilya Finkelshte... on Jul 05, 2017 @ 08:46 PM
Oh, this -- on this machine I'm not building -- changes the issue. How you tell AppVeyor not to build? Do you have
build: off
orbuild_script:
?6 Posted by mbreakey on Jul 05, 2017 @ 08:48 PM
Ah, that may have been what caused the problem. Initially I just had it as an empty section but then I removed it completely. Should I change it to "build: off"?
7 Posted by Ilya Finkelshte... on Jul 05, 2017 @ 08:54 PM
Anything will work. Both options will effectively disable
msbuild
option so AppVeyor will not search/parse solution and/or project files. If you usebuild_script:
, you simple have one more place to add your custom script. But is you already have your custom logic in the different place,build: off
looks cleaner.Also you might find useful this blog post: https://www.appveyor.com/blog/2015/11/04/deployment-projects/
8 Posted by mbreakey on Jul 05, 2017 @ 09:42 PM
Great, thank you so much Ilya! This fixed the problem
mbreakey closed this discussion on Jul 05, 2017 @ 09:42 PM.