question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug in VS for Mac] Build fails on Visual Studio for Mac

See original GitHub issue

Build fails when using VS for Mac. Use the following solution named: eShopOnContainers-ServicesAndWebApps.sln

Build error: yaml.scanner.ScannerError: while scanning a simple key in “/Development/dotnet/eShopOnContainers/obj/Docker/docker-compose.vs.debug.g.yml”, line 113, column 1 could not find expected ‘:’

That file is auto-generated by VS for Mac… this could be a bug in VS for Mac?

I reported it to the VS Tooling for Docker team and it is being researched.

Possible Bug in VS for Mac opened by Lisa Guthrie Bug 633193: [VS for Mac] eShop fails to build on Mac - Internal VSTS from DevDiv team.

Target DockerPrepareForLaunch:
    docker-compose  -f "/Development/dotnet/eShopOnContainers/docker-compose.yml" -f "/Development/dotnet/eShopOnContainers/docker-compose.override.yml" -f "/Development/dotnet/eShopOnContainers/obj/Docker/docker-compose.vs.debug.g.yml" -p dockercompose6850091948184783864 --no-ansi config
    yaml.scanner.ScannerError: while scanning a simple key
      in "/Development/dotnet/eShopOnContainers/obj/Docker/docker-compose.vs.debug.g.yml", line 113, column 1
    could not find expected ':'
      in "/Development/dotnet/eShopOnContainers/obj/Docker/docker-compose.vs.debug.g.yml", line 114, column 15
    /Applications/Visual Studio.app/Contents/Resources/lib/monodevelop/AddIns/docker/MonoDevelop.Docker/MSbuild/Sdks/Microsoft.Docker.Sdk/build/Microsoft.VisualStudio.Docker.Compose.targets(363,5): error : yaml.scanner.ScannerError: while scanning a simple key
    /Applications/Visual Studio.app/Contents/Resources/lib/monodevelop/AddIns/docker/MonoDevelop.Docker/MSbuild/Sdks/Microsoft.Docker.Sdk/build/Microsoft.VisualStudio.Docker.Compose.targets(363,5): error :   in "/Development/dotnet/eShopOnContainers/obj/Docker/docker-compose.vs.debug.g.yml", line 113, column 1
    /Applications/Visual Studio.app/Contents/Resources/lib/monodevelop/AddIns/docker/MonoDevelop.Docker/MSbuild/Sdks/Microsoft.Docker.Sdk/build/Microsoft.VisualStudio.Docker.Compose.targets(363,5): error : could not find expected ':'
    /Applications/Visual Studio.app/Contents/Resources/lib/monodevelop/AddIns/docker/MonoDevelop.Docker/MSbuild/Sdks/Microsoft.Docker.Sdk/build/Microsoft.VisualStudio.Docker.Compose.targets(363,5): error :   in "/Development/dotnet/eShopOnContainers/obj/Docker/docker-compose.vs.debug.g.yml", line 114, column 15.
    /Applications/Visual Studio.app/Contents/Resources/lib/monodevelop/AddIns/docker/MonoDevelop.Docker/MSbuild/Sdks/Microsoft.Docker.Sdk/build/Microsoft.VisualStudio.Docker.Compose.targets(363,5): error : 
    /Applications/Visual Studio.app/Contents/Resources/lib/monodevelop/AddIns/docker/MonoDevelop.Docker/MSbuild/Sdks/Microsoft.Docker.Sdk/build/Microsoft.VisualStudio.Docker.Compose.targets(363,5): error : For more troubleshooting information, go to http://aka.ms/DockerToolsTroubleshooting
Done building target "DockerPrepareForLaunch" in project "docker-compose.dcproj" -- FAILED.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
nishanilcommented, Apr 4, 2019

I tested this on Visual Studio 2019 for Mac release (Version 8.0) and it worked out of the box with the default .sln file. @CESARDELATORRE I will close this issue now. Feel free to reopen if this is still an issue.

0reactions
Meligycommented, Feb 27, 2019

Only workaround I can think of is a silly one, which is having 2 .sln files with mostly duplicate projects, one of them without the .dcproj projects.

(BTW, please use 👍on the main issue to indicate you also have it instead of adding a comment. It allows viewers to see a number in front of it, and hopefully prioritize it)

Read more comments on GitHub >

github_iconTop Results From Across the Web

VS 2022 for mac Preview6 unable to build any project
All the steps I've done: -Remove all NET SDK, VS2019 and VS2022. -Download and install Visual Studio for Mac Preview 6: .NET 6...
Read more >
Visual studio for mac not building
When I build my project in debug mode it builds forever. However there is no problem building in release mode. This problem first...
Read more >
Build issue with Visual Studio for Mac 8.10.16(build 2)
I was not facing this issue with visual studio for mac (8.10.9) build 3. Can anyone help me with this? Xamarin.
Read more >
[Bug] Cannot Build Solution On Visual Studio For Mac ...
Since version 1.3.1 of the library I cannot build the project locally using visual studio for mac. I have confirmed by run...
Read more >
r/VisualStudio - VS 2022 won't show build failure errors in ...
VS 2022 won't show build failure errors in the Error List from razor files that aren't currently open. Does anyone know of a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found