Skip to content

Commit 98f7429

Browse files
Add Visual Studio Code config files
Add default tasks for building and testing Polly with Visual Studio Code.
1 parent 3cbef2b commit 98f7429

File tree

4 files changed

+41
-1
lines changed

4 files changed

+41
-1
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ TestResults
1313
*.user
1414
*.sln.docstates
1515
.vs/
16-
.vscode/
1716
.idea/
1817
.ionide/
1918

.vscode/extensions.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"recommendations": [
3+
"EditorConfig.EditorConfig",
4+
"k--kato.docomment",
5+
"ms-dotnettools.csharp"
6+
]
7+
}

.vscode/launch.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": "Run tests",
6+
"type": "coreclr",
7+
"request": "launch",
8+
"preLaunchTask": "build",
9+
"program": "dotnet",
10+
"args": [
11+
"test"
12+
],
13+
"cwd": "${workspaceFolder}/src/Polly.Specs",
14+
"console": "internalConsole",
15+
"stopAtEntry": false,
16+
"internalConsoleOptions": "openOnSessionStart"
17+
}
18+
]
19+
}

.vscode/tasks.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"label": "build",
6+
"command": "dotnet build ./src/Polly.sln",
7+
"type": "shell",
8+
"group": "build",
9+
"presentation": {
10+
"reveal": "silent"
11+
},
12+
"problemMatcher": "$msCompile"
13+
}
14+
]
15+
}

0 commit comments

Comments
 (0)