Folder contains more than one project or solution file

mbreakey's Avatar

mbreakey

Jul 05, 2017 @ 06:42 PM

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.

  1. 1 Posted by Ilya Finkelshte... on Jul 05, 2017 @ 06:56 PM

    Ilya Finkelshteyn's Avatar

    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. 2 Posted by mbreakey on Jul 05, 2017 @ 08:39 PM

    mbreakey's Avatar

    With -Recurse on as well?

  3. 3 Posted by mbreakey on Jul 05, 2017 @ 08:40 PM

    mbreakey's Avatar

    Also - on this machine I'm not building - I'm downloading the built package from a previous AppVeyor project artifact.

  4. 4 Posted by Ilya Finkelshte... on Jul 05, 2017 @ 08:43 PM

    Ilya Finkelshteyn's Avatar

    Yes, that's why I mentioned -s, it does recurse in cmd, but feel free to use PowerShell :)

  5. 5 Posted by Ilya Finkelshte... on Jul 05, 2017 @ 08:46 PM

    Ilya Finkelshteyn's Avatar

    Oh, this -- on this machine I'm not building -- changes the issue. How you tell AppVeyor not to build? Do you have build: off or build_script:?

  6. 6 Posted by mbreakey on Jul 05, 2017 @ 08:48 PM

    mbreakey's Avatar

    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. 7 Posted by Ilya Finkelshte... on Jul 05, 2017 @ 08:54 PM

    Ilya Finkelshteyn's Avatar

    Anything will work. Both options will effectively disable msbuild option so AppVeyor will not search/parse solution and/or project files. If you use build_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. 8 Posted by mbreakey on Jul 05, 2017 @ 09:42 PM

    mbreakey's Avatar

    Great, thank you so much Ilya! This fixed the problem

  9. mbreakey closed this discussion on Jul 05, 2017 @ 09:42 PM.

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