Skip to content

Commit dd1a8e9

Browse files
authored
Merge pull request github#3991 from tamasvajk/feature/vscode
Add VS Code tasks to build and test the C# bits
2 parents 595ab44 + 17e256b commit dd1a8e9

File tree

3 files changed

+69
-0
lines changed

3 files changed

+69
-0
lines changed

csharp/.vscode/extensions.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"recommendations": [
3+
"github.vscode-codeql",
4+
"ms-dotnettools.csharp",
5+
"formulahendry.dotnet-test-explorer",
6+
"hbenl.vscode-test-explorer"
7+
],
8+
"unwantedRecommendations": []
9+
}

csharp/.vscode/settings.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"dotnet-test-explorer.enableTelemetry": false,
3+
"dotnet-test-explorer.testProjectPath": "**/*Tests.@(csproj|vbproj|fsproj)",
4+
"dotnet-test-explorer.testArguments": "/property:GenerateTargetFrameworkAttribute=false",
5+
"csharp.supressBuildAssetsNotification": true,
6+
"csharp.suppressDotnetRestoreNotification": true
7+
}

csharp/.vscode/tasks.json

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
{
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"label": "dotnet build",
6+
"command": "dotnet",
7+
"type": "shell",
8+
"args": [
9+
"build",
10+
// Ask dotnet build to generate full paths for file names.
11+
"/property:GenerateFullPaths=true",
12+
// Do not generate summary otherwise it leads to duplicate errors in Problems panel
13+
"/consoleloggerparameters:NoSummary"
14+
],
15+
"group": "build",
16+
"presentation": {
17+
"reveal": "always"
18+
},
19+
"problemMatcher": "$msCompile"
20+
},
21+
{
22+
"label": "dotnet rebuild",
23+
"command": "dotnet",
24+
"type": "shell",
25+
"args": [
26+
"build",
27+
"--no-incremental",
28+
"/property:GenerateFullPaths=true",
29+
"/consoleloggerparameters:NoSummary"
30+
],
31+
"group": "build",
32+
"presentation": {
33+
"reveal": "always"
34+
},
35+
"problemMatcher": "$msCompile"
36+
},
37+
{
38+
"label": "dotnet test",
39+
"command": "dotnet",
40+
"type": "shell",
41+
"args": [
42+
"test",
43+
"/property:GenerateFullPaths=true",
44+
"/consoleloggerparameters:NoSummary"
45+
],
46+
"group": "test",
47+
"presentation": {
48+
"reveal": "always"
49+
},
50+
"problemMatcher": "$msCompile"
51+
}
52+
]
53+
}

0 commit comments

Comments
 (0)