Build error during preLaunchTask 'build'.
See original GitHub issueWhenever I press F5 to debug an RC2 ASP.Net app, I get the following error in a bar along the top:
Build error has been detected during preLaunchTask 'build'.
with a ‘Debug Anyway’ and ‘Close’ option.
I encounter the issue every time.
Build outputs associated with this:
Project Project.Omega (.NETCoreApp,Version=v1.0) will be compiled because Input items removed from last build
Compiling Project.Omega for .NETCoreApp,Version=v1.0
Compilation succeeded.
0 Warning(s)
0 Error(s)
Time elapsed 00:00:01.3013499
Project Project.Omega (.NETCoreApp,Version=v1.0) was previously compiled. Skipping compilation.
VS Code:
[Window Title]
Visual Studio Code - Insiders
[Main Instruction]
Visual Studio Code - Insiders
[Content]
Version 1.1.0-insider
Commit c212f0908f3d29933317bbc3233568fbca7944b1
Date 2016-05-09T13:09:51.092Z
Shell 0.37.6
Renderer 49.0.2623.75
Node 5.10.0
omnisharp-vscode package: csharp-1.0.5-rc2.vsix
In the project, I’m using Microsoft.NETCore.App
version 1.0.0-rc2-3002700
.
Debug Anyway works, but it’s a pain to have to click that every time.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:3
- Comments:23 (14 by maintainers)
Top Results From Across the Web
Prelaunch task build terminated with exit code 1 - Stack Overflow
I click on "Show error" and in the "problems" tab I see the message "No problems in the workspace so far." Does anyone...
Read more >The preLaunchTask 'build' terminated with exit code -2. #79346
The preLaunchTask 'build' terminated with exit code -2. In the terminal window itself, this error is reported: The terminal shell path "dotnet" ...
Read more >The preLaunchTask 'build debug' terminated with exit code 2 ...
It says that The preLaunchTask 'build debug' terminated with exit code 2, and when I click on Debug anyway it asks me to...
Read more >Visual Studio Code debuging error | Linux.org
Issue Description Cant run "build" task because "The preLaunchTask 'build' terminated with exit code -2." I've narrowed it down to the following ...
Read more >Debugging in Visual Studio Code
One of the key features of Visual Studio Code is its great debugging support. VS Code's built-in debugger helps accelerate your edit, compile,...
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 had the same issue on OSX. Restarted after updating C# extension and the asset installtion and it went away
Thanks @jajajames. I’m glad the extension fixed this for you. I’m closing the issue. If folks see similar symptoms then please open a new issue so we can see what’s happening on latest bits.