Skip to content

Commit cd36d59

Browse files
baywetxuzhg
authored andcommitted
- adds vs code configuration to the repository
1 parent 75f293e commit cd36d59

File tree

4 files changed

+171
-0
lines changed

4 files changed

+171
-0
lines changed

.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+
"formulahendry.dotnet-test-explorer",
4+
"ms-dotnettools.csharp",
5+
"editorconfig.editorconfig"
6+
]
7+
}

.vscode/launch.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": ".NET Core Attach",
6+
"type": "coreclr",
7+
"request": "attach",
8+
"processId": "${command:pickProcess}"
9+
}
10+
]
11+
}

.vscode/settings.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"omnisharp.enableRoslynAnalyzers": true,
3+
"markdownlint.config": {
4+
"MD028": false,
5+
"MD025": {
6+
"front_matter_title": ""
7+
}
8+
}
9+
}

.vscode/tasks.json

Lines changed: 144 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,144 @@
1+
{
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"label": "build",
6+
"command": "dotnet",
7+
"type": "process",
8+
"group": "build",
9+
"args": [
10+
"build",
11+
"${workspaceFolder}/Microsoft.OpenApi.OData.sln",
12+
"/property:GenerateFullPaths=true",
13+
"/consoleloggerparameters:NoSummary"
14+
],
15+
"problemMatcher": "$msCompile"
16+
},
17+
{
18+
"label": "test",
19+
"command": "dotnet",
20+
"type": "process",
21+
"group": "test",
22+
"args": [
23+
"test",
24+
"${workspaceFolder}/Microsoft.OpenApi.OData.sln",
25+
"/property:GenerateFullPaths=true",
26+
"/consoleloggerparameters:NoSummary",
27+
"--collect:\"XPlat Code Coverage\""
28+
],
29+
"problemMatcher": "$msCompile"
30+
},
31+
{
32+
"label": "coverage:clean",
33+
"type": "shell",
34+
"group": "test",
35+
"linux": {
36+
"command": "rm",
37+
"args": [
38+
"-r",
39+
"${workspaceFolder}/test/Microsoft.OpenAPI.OData.Reader.Tests/TestResults"
40+
]
41+
},
42+
"windows": {
43+
"command": "powershell",
44+
"args": [
45+
"-command",
46+
"Remove-Item -Recurse -Include TestResults -Path ${workspaceFolder}/tests"
47+
]
48+
}
49+
},
50+
{
51+
"label": "coverage:unit",
52+
"type": "process",
53+
"group": "test",
54+
"linux":{
55+
"command": "reportgenerator",
56+
"args": [
57+
"-reports:${workspaceFolder}/tests/**/coverage.cobertura.xml",
58+
"-targetdir:${workspaceFolder}/reports/coverage"
59+
],
60+
},
61+
"windows": {
62+
"command": "reportgenerator",
63+
"args": [
64+
"-reports:${workspaceFolder}\\test\\**\\coverage.cobertura.xml",
65+
"-targetdir:${workspaceFolder}\\reports\\coverage"
66+
]
67+
},
68+
"dependsOn": [
69+
"coverage:clean",
70+
"test"
71+
],
72+
"dependsOrder": "sequence"
73+
},
74+
{
75+
"label": "coverage:launch",
76+
"type": "shell",
77+
"linux": {
78+
"command": "xdg-open",
79+
"args": [
80+
"${workspaceFolder}/reports/coverage/index.html"
81+
]
82+
},
83+
"osx": {
84+
"command": "open",
85+
"args": [
86+
"${workspaceFolder}/reports/coverage/index.html"
87+
]
88+
},
89+
"windows": {
90+
"command": "start",
91+
"args": [
92+
"${workspaceFolder}/reports/coverage/index.html"
93+
]
94+
},
95+
"group": "test",
96+
},
97+
{
98+
"label": "coverage:launch",
99+
"group": "test",
100+
"dependsOrder": "sequence",
101+
"dependsOn": [
102+
"coverage:unit",
103+
"coverage:launch"
104+
]
105+
},
106+
{
107+
"label": "clean",
108+
"command": "dotnet",
109+
"type": "process",
110+
"group": "build",
111+
"args": [
112+
"clean"
113+
],
114+
"problemMatcher": "$msCompile"
115+
},
116+
{
117+
"label": "publish",
118+
"command": "dotnet",
119+
"type": "process",
120+
"group": "build",
121+
"args": [
122+
"publish",
123+
"${workspaceFolder}/Microsoft.OpenApi.OData.sln",
124+
"/property:GenerateFullPaths=true",
125+
"/consoleloggerparameters:NoSummary"
126+
],
127+
"problemMatcher": "$msCompile"
128+
},
129+
{
130+
"label": "watch",
131+
"command": "dotnet",
132+
"type": "process",
133+
"group": "build",
134+
"args": [
135+
"watch",
136+
"run",
137+
"${workspaceFolder}/Microsoft.OpenApi.OData.sln",
138+
"/property:GenerateFullPaths=true",
139+
"/consoleloggerparameters:NoSummary"
140+
],
141+
"problemMatcher": "$msCompile"
142+
}
143+
]
144+
}

0 commit comments

Comments
 (0)