Skip to content

Commit

Permalink
Adding Tasks/Launch settings for vscode support.
Browse files Browse the repository at this point in the history
  • Loading branch information
carlsixsmith-moj committed May 31, 2024
1 parent e594cc9 commit b18fa4c
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Launch Blazor Server App",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "Build (UI)",
"program": "${workspaceFolder}/src/Server.UI/bin/Debug/net8.0/Cfo.Cats.Server.UI.dll",
"args": [],
"cwd": "${workspaceFolder}/src/Server.UI/",
"stopAtEntry": false,
"serverReadyAction": {
"action": "openExternally",
"pattern": "\\bNow listening on:\\s+(https?://\\S+)"
},
"env": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"sourceFileMap": {
"/Views": "${workspaceFolder}/src/Server.UI/Views"
}
},
{
"name": "Launch Build Console App",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "Build (Build Project)",
"program": "${workspaceFolder}/build/bin/Debug/net8.0/Build.dll",
"args": [],
"cwd": "${workspaceFolder}/build",
"stopAtEntry": false,
"console": "internalConsole"
}
]
}
33 changes: 33 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "Build (UI)",
"command": "dotnet",
"type": "process",
"args": [
"build",
"${workspaceFolder}/src/Server.UI/Server.UI.csproj"
],
"problemMatcher": "$msCompile",
"group":{
"kind": "build",
"isDefault": true
}
},
{
"label": "Build (Build Project)",
"command": "dotnet",
"type": "process",
"args": [
"build",
"${workspaceFolder}/build/Build.csproj"
],
"problemMatcher": "$msCompile",
"group":{
"kind": "build",
"isDefault": true
}
}
]
}

0 comments on commit b18fa4c

Please sign in to comment.