-
Notifications
You must be signed in to change notification settings - Fork 29.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Task.json shouldn't need to be manually created to build .NET projects before debugging #2263
Comments
@gregg-miskelly after discussing with @dbaeumer we think it is best that we help the user generate Is the task that you want to run a |
Ideally, it would be nice if people could run it some other way too. But running it as a preLaunchTask is the biggest thing that we care about. |
After discussing with @dbaeumer we should introduce a way for an extension to contribute an 'initial' |
Yes, please! With the PowerShell extension we want to provide a default task to run Pester tests. It would be great if an extension could provide the initial tasks.json file you get with {
"version": "0.1.0",
// Start PowerShell
"command": "${env.windir}\\sysnative\\windowspowershell\\v1.0\\PowerShell.exe",
// The command is a shell script
"isShellCommand": true,
// Show the output window always
"showOutput": "always",
// Allow Pester to invoke scripts and run Pester
"args": [
"-NoProfile",
"Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope Process;",
"Write-Host 'Invoking Pester...'; Invoke-Pester;",
"Invoke-Command { Write-Host \"Completed all tasks in task runner: $($args[0])\" } -args"
],
// Associate with test task runner
"tasks": [
{
"taskName": "Pester",
"isTestCommand": true,
"problemMatcher": "$pester"
}
}
} Seems like the |
Moved the comment from @rkeithhill to #966. |
After investigating into this issue we came up with the following proposal:
Rejected proposals:
Closing this issue. |
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:
"preLaunchCommand": "dotnet compile"
Which would execute 'dotnet compile' in the workspace directory.
-or-
-or-
The text was updated successfully, but these errors were encountered: