From 67974123dbba04ed18f0f6b4c5241506efc2a866 Mon Sep 17 00:00:00 2001 From: Marcel Baumgartner <68913099+Marcel-Baumgartner@users.noreply.github.com> Date: Wed, 6 Sep 2023 13:10:57 +0000 Subject: [PATCH] Added some config files for codespaces. Modified for codespaces --- .vscode/launch.json | 35 ++++++++++++++++++++ .vscode/tasks.json | 41 ++++++++++++++++++++++++ Moonlight/Properties/launchSettings.json | 8 ++--- 3 files changed, 80 insertions(+), 4 deletions(-) create mode 100644 .vscode/launch.json create mode 100644 .vscode/tasks.json diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..8b2de09 --- /dev/null +++ b/.vscode/launch.json @@ -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" + } + ] +} \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..eb9666a --- /dev/null +++ b/.vscode/tasks.json @@ -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" + } + ] +} \ No newline at end of file diff --git a/Moonlight/Properties/launchSettings.json b/Moonlight/Properties/launchSettings.json index 6e88d09..bc35e03 100644 --- a/Moonlight/Properties/launchSettings.json +++ b/Moonlight/Properties/launchSettings.json @@ -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 } }