Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
FROM mcr.microsoft.com/dotnet/sdk:3.1
WORKDIR /home/
COPY . .
RUN bash ./setup.sh
19 changes: 19 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "Octokit.NET",
"extensions": [
"formulahendry.dotnet-test-explorer",
"eamodio.gitlens",
"fernandoescolar.vscode-solution-explorer",
"ms-dotnettools.csharp",
"redhat.vscode-yaml",
],
"dockerFile": "Dockerfile",
"containerEnv": {
// Enable detection of running in a container
"DOTNET_RUNNING_IN_CONTAINER": "true",
// Enable correct mode for dotnet watch (only mode supported in a container)
"DOTNET_USE_POLLING_FILE_WATCHER": "true",
// Skip extraction of XML docs - generally not useful within an image/container - helps perfomance
"NUGET_XMLDOC_MODE": "true"
}
}
3 changes: 3 additions & 0 deletions .devcontainer/setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
apt-get update
apt-get install -y python3 python3-pip
pip3 install mkdocs
85 changes: 84 additions & 1 deletion .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"version": "2.0.0",
"tasks": [
{
"label": "build",
"label": "Build",
"command": "dotnet",
"type": "shell",
"args": [
Expand All @@ -28,6 +28,89 @@
"reveal": "silent"
},
"problemMatcher": "$msCompile"
},
{
"label": "Run docs server",
"command": "mkdocs",
"type": "shell",
"args": ["serve"],
"presentation": {
"reveal": "silent",
"revealProblems": "onProblem"
}
}
]
}
{
"version": "2.0.0",
"tasks": [
{
"label": "Build",
"command": "dotnet",
"type": "shell",
"args": [
"build",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary"
],
"group": {
"kind": "build",
"isDefault": true
},
"presentation": {
"reveal": "silent"
},
"problemMatcher": "$msCompile"
},
{
"label": "Unit Tests",
"command": "./build.sh",
"type": "shell",
"args": [
"--target=UnitTests"
],
"group": {
"kind": "test"
},
"presentation": {
"reveal": "always"
},
"problemMatcher": "$msCompile"
},
{
"label": "Convention Tests",
"command": "./build.sh",
"type": "shell",
"args": [
"--target=ConventionTests"
],
"group": {
"kind": "test"
},
"presentation": {
"reveal": "always"
},
"problemMatcher": "$msCompile"
},
{
"label": "Format",
"command": "dotnet",
"type": "shell",
"args": ["format"],
"presentation": {
"reveal": "silent"
},
"problemMatcher": "$msCompile"
},
{
"label": "Docs",
"command": "mkdocs",
"type": "shell",
"args": ["serve"],
"presentation": {
"reveal": "silent",
"revealProblems": "onProblem"
}
}
]
}