Skip to content

Instantly share code, notes, and snippets.

@DanielMPries
Created December 11, 2019 02:11
Show Gist options
  • Save DanielMPries/b8a9d814144407494f08539d7519ce6c to your computer and use it in GitHub Desktop.
Save DanielMPries/b8a9d814144407494f08539d7519ce6c to your computer and use it in GitHub Desktop.
Tool and task for Xml Doc Markdown
{
"version": "2.0.0",
"tasks": [
{
"label": "Generate documentation",
"command": "xmldocmd",
"type": "process",
"args": [
"TARGET_PROJECT.dll",
"Docs"
],
"windows": {
"options": {
"cwd": "${workspaceRoot}\\Published"
}
},
"linux": {
"options": {
"cwd": "${workspaceRoot}/Published"
}
},
"group": {
"kind": "build",
"isDefault": true
},
"dependsOn": [
"Release"
],
"problemMatcher": [
"$msCompile"
]
},
{
"label": "Release",
"command": "dotnet",
"type": "process",
"windows": {
"options": {
"cwd": "${workspaceRoot}\\TARGET_PROJECT_FOLDER"
},
"args": [
"build",
"--configuration",
"Release",
"--output",
"${workspaceRoot}\\Published",
"--clean"
]
},
"linux": {
"options": {
"cwd": "${workspaceRoot}/TARGET_PROJECT_FOLDER"
},
"args": [
"build",
"--configuration",
"Release",
"--output",
"${workspaceRoot}/Published"
]
},
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": [
"$msCompile"
]
}
]
}
dotnet tool install xmldocmd -g
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment