[Bug in VS for Mac] Build fails on Visual Studio for Mac
See original GitHub issueBuild 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:
- Created 5 years ago
- Reactions:1
- Comments:6 (1 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
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)