diff --git a/.vscode/launch.json b/.vscode/launch.json index f64f65f..4de6d3a 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -2,51 +2,25 @@ "version": "0.2.0", "configurations": [ { + // Use IntelliSense to find out which attributes exist for C# debugging + // Use hover for the description of the existing attributes + // For further information visit https://github.com/dotnet/vscode-csharp/blob/main/debugger-launchjson.md "name": ".NET Core Launch (console)", "type": "coreclr", "request": "launch", "preLaunchTask": "build", - "program": "${workspaceRoot}/bin/Debug//", + // If you have changed target frameworks, make sure to update the program path. + "program": "${workspaceFolder}/src/LinqStatisticsTests/bin/Debug/net8.0/LinqStatisticsTests.dll", "args": [], - "cwd": "${workspaceRoot}", - "stopAtEntry": false, - "externalConsole": false - }, - { - "name": ".NET Core Launch (web)", - "type": "coreclr", - "request": "launch", - "preLaunchTask": "build", - "program": "${workspaceRoot}/bin/Debug//", - "args": [], - "cwd": "${workspaceRoot}", - "stopAtEntry": false, - "launchBrowser": { - "enabled": true, - "args": "${auto-detect-url}", - "windows": { - "command": "cmd.exe", - "args": "/C start ${auto-detect-url}" - }, - "osx": { - "command": "open" - }, - "linux": { - "command": "xdg-open" - } - }, - "env": { - "ASPNETCORE_ENVIRONMENT": "Development" - }, - "sourceFileMap": { - "/Views": "${workspaceRoot}/Views" - } + "cwd": "${workspaceFolder}/src/LinqStatisticsTests", + // For more information about the 'console' field, see https://aka.ms/VSCode-CS-LaunchJson-Console + "console": "internalConsole", + "stopAtEntry": false }, { "name": ".NET Core Attach", "type": "coreclr", - "request": "attach", - "processId": "${command.pickProcess}" + "request": "attach" } ] } \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json index f97e9e6..e4db106 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -1,25 +1,40 @@ { - // See https://go.microsoft.com/fwlink/?LinkId=733558 - // for the documentation about the tasks.json format "version": "2.0.0", "tasks": [ { "label": "build", - "type": "shell", - "command": "msbuild", + "command": "dotnet", + "type": "process", "args": [ - // Ask msbuild to generate full paths for file names. + "build", + "${workspaceFolder}/src/LinqStatistics.sln", "/property:GenerateFullPaths=true", - "/t:build", - // Do not generate summary otherwise it leads to duplicate errors in Problems panel - "/consoleloggerparameters:NoSummary" + "/consoleloggerparameters:NoSummary;ForceNoAlign" + ], + "problemMatcher": "$msCompile" + }, + { + "label": "publish", + "command": "dotnet", + "type": "process", + "args": [ + "publish", + "${workspaceFolder}/src/LinqStatistics.sln", + "/property:GenerateFullPaths=true", + "/consoleloggerparameters:NoSummary;ForceNoAlign" + ], + "problemMatcher": "$msCompile" + }, + { + "label": "watch", + "command": "dotnet", + "type": "process", + "args": [ + "watch", + "run", + "--project", + "${workspaceFolder}/src/LinqStatistics.sln" ], - "group": "build", - "presentation": { - // Reveal the output only if unrecognized errors occur. - "reveal": "silent" - }, - // Use the standard MS compiler pattern to detect errors, warnings and infos "problemMatcher": "$msCompile" } ]