main
cosmonaut 2023-12-13 11:21:23 -08:00
parent 4a9c9cc42c
commit 4f3863f5b8
3 changed files with 19 additions and 21 deletions

8
.vscode/launch.json vendored
View File

@ -2,13 +2,13 @@
"version": "0.2.0",
"configurations": [
{
"name": "Attach to .NET 7 Debugger",
"name": "Attach to .NET 8 Debugger",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "Build: .NET 7 Debug",
"program": "${workspaceFolder}/bin/x64/Debug/net7.0/ProjectName.dll",
"preLaunchTask": "Build: .NET 8 Debug",
"program": "${workspaceFolder}/bin/Debug/net8.0/ProjectName.dll",
"args": [],
"cwd": "${workspaceFolder}/bin/x64/Debug/net7.0",
"cwd": "${workspaceFolder}/bin/Debug/net8.0",
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen"
}

30
.vscode/tasks.json vendored
View File

@ -21,12 +21,12 @@
},
"tasks": [
{
"label": "Build & Run: .NET 7 Debug",
"label": "Build & Run: .NET 8 Debug",
"type": "shell",
"dependsOrder": "sequence",
"dependsOn": [
"Build: .NET 7 Debug",
"Run: .NET 7 Debug"
"Build: .NET 8 Debug",
"Run: .NET 8 Debug"
],
"group": {
"kind": "build",
@ -35,13 +35,12 @@
"problemMatcher": []
},
{
"label": "Build: .NET 7 Debug",
"label": "Build: .NET 8 Debug",
"command": "dotnet",
"args": [
"build",
"./ProjectName.csproj",
"-p:SolutionDir=${workspaceFolder}/",
"-p:Platform=x64"
"-p:SolutionDir=${workspaceFolder}/"
],
"type": "shell",
"group": {
@ -51,13 +50,13 @@
"problemMatcher": []
},
{
"label": "Run: .NET 7 Debug",
"label": "Run: .NET 8 Debug",
"command": "ProjectName",
"windows": {
"command": "ProjectName.exe"
},
"options": {
"cwd": "${workspaceFolder}/bin/x64/Debug/net7.0"
"cwd": "${workspaceFolder}/bin/Debug/net8.0"
},
"type": "process",
"group": {
@ -67,15 +66,14 @@
"problemMatcher": []
},
{
"label": "Build: .NET 7 Release",
"label": "Build: .NET 8 Release",
"command": "dotnet",
"args": [
"build",
"./ProjectName.csproj",
"--configuration",
"Release",
"-p:SolutionDir=${workspaceFolder}/",
"-p:Platform=x64"
"-p:SolutionDir=${workspaceFolder}/"
],
"type": "shell",
"group": {
@ -85,13 +83,13 @@
"problemMatcher": []
},
{
"label": "Run: .NET 7 Release",
"label": "Run: .NET 8 Release",
"command": "ProjectName",
"windows": {
"command": "ProjectName.exe"
},
"options": {
"cwd": "${workspaceFolder}/bin/x64/Debug/net7.0"
"cwd": "${workspaceFolder}/bin/Debug/net8.0"
},
"type": "process",
"group": {
@ -101,11 +99,11 @@
"problemMatcher": []
},
{
"label": "Build & Run: .NET 7 Release",
"label": "Build & Run: .NET 8 Release",
"dependsOrder": "sequence",
"dependsOn": [
"Build: .NET 7 Release",
"Run: .NET 7 Release"
"Build: .NET 8 Release",
"Run: .NET 8 Release"
],
"type": "shell",
"group": {

View File

@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<TargetName>ProjectName</TargetName>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<GenerateTargetFrameworkAttribute>false</GenerateTargetFrameworkAttribute>