Update VSCode Blazor

This commit is contained in:
Leandro Hernan Rojas 2025-01-29 00:48:14 -03:00
parent 81308c2f79
commit 15e9c8f42a
3 changed files with 103 additions and 39 deletions

15
.vscode/launch.json vendored
View File

@ -1,6 +1,7 @@
{
"version": "0.2.0",
"configurations": [
// Configuración existente de la API (no modificar)
{
"name": "Launch phronCare API",
"type": "coreclr",
@ -22,7 +23,19 @@
"sourceFileMap": {
"/Views": "${workspaceFolder}/Views"
}
},
// Nueva configuración para Blazor WebAssembly
{
"name": "Launch Blazor WASM",
"type": "blazorwasm",
"request": "launch",
"preLaunchTask": "build-blazor",
"url": "http://localhost:5165",
"browser": "default",
"cwd": "${workspaceFolder}/phronCare.UIBlazor",
"env": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
}
]
}

56
.vscode/tasks.json vendored
View File

@ -1,16 +1,66 @@
{
"version": "2.0.0",
"tasks": [
// Tarea existente de la API (no la modificamos)
{
"label": "build",
"command": "dotnet",
"type": "process",
"args": [
"build",
"${workspaceFolder}/phronCare/phronCare.API/phronCare.API.csproj"
"${workspaceFolder}/phronCare.API/phronCare.API.csproj"
],
"problemMatcher": "$msCompile"
},
// Tareas nuevas para Blazor
{
"label": "build-blazor",
"command": "dotnet",
"type": "process",
"args": [
"build",
"${workspaceFolder}/phronCare.Blazor/phronCare.Blazor.csproj"
],
"problemMatcher": "$msCompile"
},
{
"label": "run-blazor",
"command": "dotnet",
"type": "process",
"args": [
"run",
"--project",
"${workspaceFolder}/phronCare.Blazor/phronCare.Blazor.csproj"
],
"problemMatcher": "$msCompile"
},
{
"label": "watch-blazor",
"command": "dotnet",
"type": "process",
"args": [
"watch",
"run",
"--project",
"${workspaceFolder}/phronCare.Blazor/phronCare.Blazor.csproj"
],
"problemMatcher": "$msCompile",
"isBackground": true
}
]
}
}
// {
// "version": "2.0.0",
// "tasks": [
// {
// "label": "build",
// "command": "dotnet",
// "type": "process",
// "args": [
// "build",
// "${workspaceFolder}/phronCare.API/phronCare.API.csproj"
// ],
// "problemMatcher": "$msCompile"
// }
// ]
// }

View File

@ -1,8 +1,9 @@
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
"Default": "Warning",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
},
"AllowedHosts": "*",