Added some config files for codespaces. Modified for codespaces

This commit is contained in:
Marcel Baumgartner 2023-09-06 13:10:57 +00:00
parent 05817a8866
commit 67974123db
3 changed files with 80 additions and 4 deletions

35
.vscode/launch.json vendored Normal file
View file

@ -0,0 +1,35 @@
{
"version": "0.2.0",
"configurations": [
{
// Use IntelliSense to find out which attributes exist for C# debugging
// Use hover for the description of the existing attributes
// For further information visit https://github.com/dotnet/vscode-csharp/blob/main/debugger-launchjson.md.
"name": ".NET Core Launch (web)",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build",
// If you have changed target frameworks, make sure to update the program path.
"program": "${workspaceFolder}/Moonlight/bin/Debug/net6.0/Moonlight.dll",
"args": [],
"cwd": "${workspaceFolder}/Moonlight",
"stopAtEntry": false,
// Enable launching a web browser when ASP.NET Core starts. For more information: https://aka.ms/VSCode-CS-LaunchJson-WebBrowser
"serverReadyAction": {
"action": "openExternally",
"pattern": "\\bNow listening on:\\s+(https?://\\S+)"
},
"env": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"sourceFileMap": {
"/Views": "${workspaceFolder}/Views"
}
},
{
"name": ".NET Core Attach",
"type": "coreclr",
"request": "attach"
}
]
}

41
.vscode/tasks.json vendored Normal file
View file

@ -0,0 +1,41 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "build",
"command": "dotnet",
"type": "process",
"args": [
"build",
"${workspaceFolder}/Moonlight.sln",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary"
],
"problemMatcher": "$msCompile"
},
{
"label": "publish",
"command": "dotnet",
"type": "process",
"args": [
"publish",
"${workspaceFolder}/Moonlight.sln",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary"
],
"problemMatcher": "$msCompile"
},
{
"label": "watch",
"command": "dotnet",
"type": "process",
"args": [
"watch",
"run",
"--project",
"${workspaceFolder}/Moonlight.sln"
],
"problemMatcher": "$msCompile"
}
]
}

View file

@ -9,7 +9,7 @@
"ASPNETCORE_ENVIRONMENT": "Development",
"ML_DEBUG": "true"
},
"applicationUrl": "http://moonlight.owo:5118;https://localhost:7118;http://localhost:5118",
"applicationUrl": "http://localhost:5118;http://moonlight.owo:5118",
"dotnetRunMessages": true
},
"Live DB":
@ -21,7 +21,7 @@
"ML_DEBUG": "true",
"ML_CONFIG_PATH": "storage\\configs\\live_config.json"
},
"applicationUrl": "http://moonlight.owo:5118;https://localhost:7118;http://localhost:5118",
"applicationUrl": "http://moonlight.owo:5118;http://localhost:5118",
"dotnetRunMessages": true
},
"Dev DB 1":
@ -33,7 +33,7 @@
"ML_DEBUG": "true",
"ML_CONFIG_PATH": "storage\\configs\\dev_1_config.json"
},
"applicationUrl": "http://moonlight.owo:5118;https://localhost:7118;http://localhost:5118",
"applicationUrl": "http://moonlight.owo:5118;http://localhost:5118",
"dotnetRunMessages": true
},
"Dev DB 2":
@ -45,7 +45,7 @@
"ML_DEBUG": "true",
"ML_CONFIG_PATH": "storage\\configs\\dev_2_config.json"
},
"applicationUrl": "http://moonlight.owo:5118;https://localhost:7118;http://localhost:5118",
"applicationUrl": "http://moonlight.owo:5118;http://localhost:5118",
"dotnetRunMessages": true
}
}