Skip to content
Open
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
60 changes: 27 additions & 33 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,28 +1,25 @@
{
"version": "0.2.0",
"configurations": [
"inputs": [
{
"name": ".NET Core Launch (console debug) - net10.0",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "dotnet build (debug) - net10.0",
"program": "${workspaceRoot}/src/OrchardCore.Cms.Web/bin/Debug/net10.0/OrchardCore.Cms.Web.dll",
"args": [],
"cwd": "${workspaceRoot}/src/OrchardCore.Cms.Web",
"env": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"stopAtEntry": false
},
"id": "targetFramework",
"type": "pickString",
"description": "Select target framework",
"options": [
"net10.0"
],
"default": "net10.0"
}
],
"configurations": [
{
"name": ".NET Core Launch (web debug) - net10.0",
"name": "Launch (debug)",
"type": "coreclr",
"request": "launch",
"internalConsoleOptions": "openOnSessionStart",
"preLaunchTask": "dotnet build (debug) - net10.0",
"program": "${workspaceRoot}/src/OrchardCore.Cms.Web/bin/Debug/net10.0/OrchardCore.Cms.Web.dll",
"preLaunchTask": "dotnet build (debug)",
"program": "${workspaceFolder}/src/OrchardCore.Cms.Web/bin/Debug/${input:targetFramework}/OrchardCore.Cms.Web.dll",
"args": [],
"cwd": "${workspaceRoot}/src/OrchardCore.Cms.Web",
"cwd": "${workspaceFolder}/src/OrchardCore.Cms.Web",
"env": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
Expand All @@ -33,13 +30,13 @@
}
},
{
"name": ".NET Core Launch (web release) - net10.0",
"name": "Launch (release)",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "dotnet build (release) - net10.0",
"program": "${workspaceRoot}/src/OrchardCore.Cms.Web/bin/Release/net10.0/OrchardCore.Cms.Web.dll",
"preLaunchTask": "dotnet build (release)",
"program": "${workspaceFolder}/src/OrchardCore.Cms.Web/bin/Release/${input:targetFramework}/OrchardCore.Cms.Web.dll",
"args": [],
"cwd": "${workspaceRoot}/src/OrchardCore.Cms.Web",
"cwd": "${workspaceFolder}/src/OrchardCore.Cms.Web",
"env": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
Expand All @@ -50,25 +47,22 @@
}
},
{
"name": ".NET Core Launch (web debug) - dotnet watch - net10.0",
"type": "dotnetwatchattach",
"name": "Launch with Hot Reload (dotnet watch)",
"type": "node-terminal",
"request": "launch",
"task": "dotnet watch - net10.0",
"program": "OrchardCore.Cms.Web.exe",
"args": {
"env": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
"command": "dotnet watch --project src/OrchardCore.Cms.Web/OrchardCore.Cms.Web.csproj -f ${input:targetFramework}",
"cwd": "${workspaceFolder}",
"env": {
"ASPNETCORE_ENVIRONMENT": "Development",
"DOTNET_WATCH_SUPPRESS_LAUNCH_BROWSER": "true"
},
"cwd": "${workspaceRoot}/src/OrchardCore.Cms.Web",
"stopAtEntry": false,
"serverReadyAction": {
"action": "openExternally",
"pattern": "\\bNow listening on:\\s+(https?://\\S+)"
}
},
{
"name": ".NET Core Attach",
"name": "Attach to Process",
"type": "coreclr",
"request": "attach",
"processId": "${command:pickProcess}"
Expand Down
155 changes: 77 additions & 78 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -1,42 +1,69 @@
{
"version": "2.0.0",
"linux": {
"command": "sh",
"args": [
"-c"
]
},
"osx": {
"command": "sh",
"args": [
"-c"
]
},
"windows": {
"options": {
"shell": {
"executable": "cmd.exe",
"args": [
"/C"
]
}
"inputs": [
{
"id": "targetFramework",
"type": "pickString",
"description": "Select target framework",
"options": [
"net10.0"
],
"default": "net10.0"
}
},
],
"tasks": [
{
"label": "dotnet watch - net10.0",
"label": "dotnet watch",
"type": "process",
"command": "dotnet",
"args": [
"watch",
"run",
"${workspaceRoot}/src/OrchardCore.Cms.Web",
"--project",
"${workspaceFolder}/src/OrchardCore.Cms.Web/OrchardCore.Cms.Web.csproj",
"-f",
"net10.0"
"${input:targetFramework}"
],
"options": {
"cwd": "${workspaceRoot}/src/OrchardCore.Cms.Web"
"env": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"isBackground": true,
"problemMatcher": {
"base": "$msCompile",
"background": {
"activeOnStart": true,
"beginsPattern": "dotnet watch",
"endsPattern": "\\bNow listening on:\\s+(https?://\\S+)"
}
}
},
{
"label": "dotnet build (debug)",
"type": "shell",
"command": "dotnet",
"args": [
"build",
"${workspaceFolder}/src/OrchardCore.Cms.Web",
"-c",
"Debug",
"-f",
"${input:targetFramework}"
],
"problemMatcher": "$msCompile"
},
{
"label": "dotnet build (release)",
"type": "shell",
"command": "dotnet",
"args": [
"build",
"${workspaceFolder}/src/OrchardCore.Cms.Web",
"-c",
"Release",
"-f",
"${input:targetFramework}"
],
"problemMatcher": "$msCompile"
},
{
Expand All @@ -46,9 +73,9 @@
"args": [
"run",
"--project",
"${workspaceRoot}\\src\\OrchardCore.Cms.Web\\OrchardCore.Cms.Web.csproj",
"${workspaceFolder}/src/OrchardCore.Cms.Web/OrchardCore.Cms.Web.csproj",
"-f",
"net10.0"
"${input:targetFramework}"
]
},
{
Expand Down Expand Up @@ -89,60 +116,32 @@
]
},
{
"label": "dotnet build (debug) - net10.0",
"type": "shell",
"command": "dotnet",
"args": [
"build",
"${workspaceRoot}/src/OrchardCore.Cms.Web",
"-c",
"Debug",
"-f",
"net10.0"
],
"problemMatcher": "$msCompile"
},
{
"label": "dotnet build (release) - net10.0",
"label": "dotnet rebuild (debug)",
"type": "shell",
"command": "dotnet",
"args": [
"build",
"${workspaceRoot}/src/OrchardCore.Cms.Web",
"-c",
"Release",
"-f",
"net10.0"
],
"problemMatcher": "$msCompile"
},
{
"label": "dotnet rebuild (debug) - net10.0",
"type": "shell",
"command": "dotnet",
"args": [
"build",
"${workspaceRoot}/src/OrchardCore.Cms.Web",
"${workspaceFolder}/src/OrchardCore.Cms.Web",
"--no-incremental",
"-c",
"Debug",
"-f",
"net10.0"
"${input:targetFramework}"
],
"problemMatcher": "$msCompile"
},
{
"label": "dotnet rebuild (release) - net10.0",
"label": "dotnet rebuild (release)",
"type": "shell",
"command": "dotnet",
"args": [
"build",
"${workspaceRoot}/src/OrchardCore.Cms.Web",
"${workspaceFolder}/src/OrchardCore.Cms.Web",
"--no-incremental",
"-c",
"Release",
"-f",
"net10.0"
"${input:targetFramework}"
],
"problemMatcher": "$msCompile"
},
Expand All @@ -153,99 +152,99 @@
"windows": {
"command": "Remove-Item",
"args": [
"${workspaceRoot}\\.build\\release\\*",
"${workspaceFolder}\\.build\\release\\*",
"-recurse"
]
},
"args": [
"-rfv",
"${workspaceRoot}/.build/release/*"
"${workspaceFolder}/.build/release/*"
]
},
{
"label": "dotnet publish (self-contained) - release - net10.0",
"label": "dotnet publish (self-contained) - release",
"type": "shell",
"command": "dotnet",
"windows": {
"command": "dotnet",
"args": [
"publish",
"${workspaceRoot}\\src\\OrchardCore.Cms.Web",
"${workspaceFolder}\\src\\OrchardCore.Cms.Web",
"--configuration",
"release",
"--runtime",
"win-x64",
"--self-contained",
"--framework",
"net10.0",
"${input:targetFramework}",
"--output",
".\\.build\\release"
]
},
"args": [
"publish",
"${workspaceRoot}/src/OrchardCore.Cms.Web",
"${workspaceFolder}/src/OrchardCore.Cms.Web",
"--configuration",
"release",
"--runtime",
"linux-x64",
"--self-contained",
"--framework",
"net10.0",
"${input:targetFramework}",
"--output",
"./.build/release"
],
"problemMatcher": "$msCompile"
},
{
"label": "dotnet publish (framework dependent) - release - net10.0",
"label": "dotnet publish (framework dependent) - release",
"type": "shell",
"command": "dotnet",
"windows": {
"command": "dotnet",
"args": [
"publish",
"${workspaceRoot}\\src\\OrchardCore.Cms.Web",
"${workspaceFolder}\\src\\OrchardCore.Cms.Web",
"--configuration",
"release",
"--runtime",
"win-x64",
"--self-contained",
"false",
"--framework",
"net10.0",
"${input:targetFramework}",
"--output",
".\\.build\\release"
]
},
"args": [
"publish",
"${workspaceRoot}/src/OrchardCore.Cms.Web",
"${workspaceFolder}/src/OrchardCore.Cms.Web",
"--configuration",
"release",
"--runtime",
"linux-x64",
"--self-contained",
"false",
"--framework",
"net10.0",
"${input:targetFramework}",
"--output",
"./.build/release"
],
"problemMatcher": "$msCompile"
},
{
"label": "tasks: dotnet publish release (self-contained) - net10.0",
"label": "tasks: dotnet publish release (self-contained)",
"dependsOn": [
"cleanup publish folder",
"dotnet publish (self-contained) - net10.0"
"dotnet publish (self-contained) - release"
]
},
{
"label": "tasks: dotnet publish release (framework dependent) - net10.0",
"label": "tasks: dotnet publish release (framework dependent)",
"dependsOn": [
"cleanup publish folder",
"dotnet publish (framework dependent) - net10.0"
"dotnet publish (framework dependent) - release"
]
},
{
Expand Down
Loading
Loading