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.

Build error during preLaunchTask 'build'.

See original GitHub issue

Whenever 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:closed
  • Created 7 years ago
  • Reactions:3
  • Comments:23 (14 by maintainers)

github_iconTop GitHub Comments

2reactions
jchannoncommented, May 18, 2016

I had the same issue on OSX. Restarted after updating C# extension and the asset installtion and it went away

0reactions
TheRealPiotrPcommented, Nov 1, 2017

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.

Read more comments on GitHub >

github_iconTop 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 >

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