Skip to content

Task.json shouldn't need to be manually created to build .NET projects before debugging #2263

Closed
@gregg-miskelly

Description

@gregg-miskelly

For .NET debugging, we currently need to have the user manually create a tasks.json in order to support build. We would like to find some solution to avoid the user needing to do this manually.

A few options:

  1. Support simple shell commands directly inside of launch.json. So if all the user wants to do is execute a command with a default error syntax they don't need this extra file. Example:
    "preLaunchCommand": "dotnet compile"
    Which would execute 'dotnet compile' in the workspace directory.
    -or-
  2. Support auto-generating a tasks.json when creating launch.json. This way we can give them a good default value of it and the user doesn't need to manually enter it.
    -or-
  3. Support defining tasks in an extension's package.json. So the user only needs to create a launch.json if they want to do something weird.

Metadata

Metadata

Assignees

Labels

debugDebug viewlet, configurations, breakpoints, adapter issuesfeature-requestRequest for new features or functionalitytasksTask system issues

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions