Skip to content

Commit e864b51

Browse files
authored
Merge pull request #28 from dkackman/netcore
update tasks
2 parents 431a268 + 5b2956f commit e864b51

2 files changed

Lines changed: 39 additions & 50 deletions

File tree

.vscode/launch.json

Lines changed: 10 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -2,51 +2,25 @@
22
"version": "0.2.0",
33
"configurations": [
44
{
5+
// Use IntelliSense to find out which attributes exist for C# debugging
6+
// Use hover for the description of the existing attributes
7+
// For further information visit https://github.com/dotnet/vscode-csharp/blob/main/debugger-launchjson.md
58
"name": ".NET Core Launch (console)",
69
"type": "coreclr",
710
"request": "launch",
811
"preLaunchTask": "build",
9-
"program": "${workspaceRoot}/bin/Debug/<target-framework>/<project-name.dll>",
12+
// If you have changed target frameworks, make sure to update the program path.
13+
"program": "${workspaceFolder}/src/LinqStatisticsTests/bin/Debug/net8.0/LinqStatisticsTests.dll",
1014
"args": [],
11-
"cwd": "${workspaceRoot}",
12-
"stopAtEntry": false,
13-
"externalConsole": false
14-
},
15-
{
16-
"name": ".NET Core Launch (web)",
17-
"type": "coreclr",
18-
"request": "launch",
19-
"preLaunchTask": "build",
20-
"program": "${workspaceRoot}/bin/Debug/<target-framework>/<project-name.dll>",
21-
"args": [],
22-
"cwd": "${workspaceRoot}",
23-
"stopAtEntry": false,
24-
"launchBrowser": {
25-
"enabled": true,
26-
"args": "${auto-detect-url}",
27-
"windows": {
28-
"command": "cmd.exe",
29-
"args": "/C start ${auto-detect-url}"
30-
},
31-
"osx": {
32-
"command": "open"
33-
},
34-
"linux": {
35-
"command": "xdg-open"
36-
}
37-
},
38-
"env": {
39-
"ASPNETCORE_ENVIRONMENT": "Development"
40-
},
41-
"sourceFileMap": {
42-
"/Views": "${workspaceRoot}/Views"
43-
}
15+
"cwd": "${workspaceFolder}/src/LinqStatisticsTests",
16+
// For more information about the 'console' field, see https://aka.ms/VSCode-CS-LaunchJson-Console
17+
"console": "internalConsole",
18+
"stopAtEntry": false
4419
},
4520
{
4621
"name": ".NET Core Attach",
4722
"type": "coreclr",
48-
"request": "attach",
49-
"processId": "${command.pickProcess}"
23+
"request": "attach"
5024
}
5125
]
5226
}

.vscode/tasks.json

Lines changed: 29 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,40 @@
11
{
2-
// See https://go.microsoft.com/fwlink/?LinkId=733558
3-
// for the documentation about the tasks.json format
42
"version": "2.0.0",
53
"tasks": [
64
{
75
"label": "build",
8-
"type": "shell",
9-
"command": "msbuild",
6+
"command": "dotnet",
7+
"type": "process",
108
"args": [
11-
// Ask msbuild to generate full paths for file names.
9+
"build",
10+
"${workspaceFolder}/src/LinqStatistics.sln",
1211
"/property:GenerateFullPaths=true",
13-
"/t:build",
14-
// Do not generate summary otherwise it leads to duplicate errors in Problems panel
15-
"/consoleloggerparameters:NoSummary"
12+
"/consoleloggerparameters:NoSummary;ForceNoAlign"
13+
],
14+
"problemMatcher": "$msCompile"
15+
},
16+
{
17+
"label": "publish",
18+
"command": "dotnet",
19+
"type": "process",
20+
"args": [
21+
"publish",
22+
"${workspaceFolder}/src/LinqStatistics.sln",
23+
"/property:GenerateFullPaths=true",
24+
"/consoleloggerparameters:NoSummary;ForceNoAlign"
25+
],
26+
"problemMatcher": "$msCompile"
27+
},
28+
{
29+
"label": "watch",
30+
"command": "dotnet",
31+
"type": "process",
32+
"args": [
33+
"watch",
34+
"run",
35+
"--project",
36+
"${workspaceFolder}/src/LinqStatistics.sln"
1637
],
17-
"group": "build",
18-
"presentation": {
19-
// Reveal the output only if unrecognized errors occur.
20-
"reveal": "silent"
21-
},
22-
// Use the standard MS compiler pattern to detect errors, warnings and infos
2338
"problemMatcher": "$msCompile"
2439
}
2540
]

0 commit comments

Comments
 (0)