From 43c1497f40fad0671fdd74992f372846d96a814f Mon Sep 17 00:00:00 2001 From: Ryan Peters Date: Tue, 21 Jun 2022 16:51:34 -0400 Subject: [PATCH] update to .net 6, add VS code support --- .vscode/launch.json | 35 ++++++++++++++++++ .vscode/tasks.json | 41 ++++++++++++++++++++++ BinaryDad.Coding/.config/dotnet-tools.json | 2 +- BinaryDad.Coding/BinaryDad.Coding.csproj | 2 +- 4 files changed, 78 insertions(+), 2 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..0f2e873 --- /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/OmniSharp/omnisharp-vscode/blob/master/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}/BinaryDad.Coding/bin/Debug/net6.0/BinaryDad.Coding.dll", + "args": [], + "cwd": "${workspaceFolder}/BinaryDad.Coding", + "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..787a0fb --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,41 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "label": "build", + "command": "dotnet", + "type": "process", + "args": [ + "build", + "${workspaceFolder}/BinaryDad.Coding/BinaryDad.Coding.csproj", + "/property:GenerateFullPaths=true", + "/consoleloggerparameters:NoSummary" + ], + "problemMatcher": "$msCompile" + }, + { + "label": "publish", + "command": "dotnet", + "type": "process", + "args": [ + "publish", + "${workspaceFolder}/BinaryDad.Coding/BinaryDad.Coding.csproj", + "/property:GenerateFullPaths=true", + "/consoleloggerparameters:NoSummary" + ], + "problemMatcher": "$msCompile" + }, + { + "label": "watch", + "command": "dotnet", + "type": "process", + "args": [ + "watch", + "run", + "--project", + "${workspaceFolder}/BinaryDad.Coding/BinaryDad.Coding.csproj" + ], + "problemMatcher": "$msCompile" + } + ] +} \ No newline at end of file diff --git a/BinaryDad.Coding/.config/dotnet-tools.json b/BinaryDad.Coding/.config/dotnet-tools.json index 2ae5996..c9b7f4f 100644 --- a/BinaryDad.Coding/.config/dotnet-tools.json +++ b/BinaryDad.Coding/.config/dotnet-tools.json @@ -3,7 +3,7 @@ "isRoot": true, "tools": { "dotnet-ef": { - "version": "5.0.8", + "version": "6.0.6", "commands": [ "dotnet-ef" ] diff --git a/BinaryDad.Coding/BinaryDad.Coding.csproj b/BinaryDad.Coding/BinaryDad.Coding.csproj index 842a770..e948168 100644 --- a/BinaryDad.Coding/BinaryDad.Coding.csproj +++ b/BinaryDad.Coding/BinaryDad.Coding.csproj @@ -1,7 +1,7 @@ - net5.0 + net6.0