update mod template for net7

This commit is contained in:
Th3Dilli 2023-08-01 14:38:00 +02:00
parent bea384b470
commit 0b0d49fd1b
No known key found for this signature in database
GPG key ID: B952D7A5ACC404F2
39 changed files with 1054 additions and 53653 deletions

6
.vscode/extensions.json vendored Normal file
View file

@ -0,0 +1,6 @@
{
"recommendations": [
"ms-dotnettools.csdevkit",
"ms-dotnettools.csharp"
]
}

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

@ -0,0 +1,50 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Launch Client (Debug)",
"type": "coreclr",
"request": "launch",
"program": "${env:VINTAGE_STORY}/Vintagestory.exe",
"linux": {
"program": "${env:VINTAGE_STORY}/Vintagestory"
},
"osx": {
"program": "${env:VINTAGE_STORY}/Vintagestory"
},
"preLaunchTask": "build",
"args": [
// "--playStyle" , "preset-surviveandbuild",
// "--openWorld" , "modding test world",
"--tracelog",
"--addModPath",
"${workspaceFolder}/ModTemplate/bin/Debug/Mods"
],
"console": "internalConsole",
"stopAtEntry": false
},
{
"name": "Launch Server",
"type": "coreclr",
"request": "launch",
"program": "${env:VINTAGE_STORY}/VintagestoryServer.exe",
"linux": {
"program": "${env:VINTAGE_STORY}/VintagestoryServer"
},
"osx": {
"program": "${env:VINTAGE_STORY}/VintagestoryServer"
},
"preLaunchTask": "build",
"args": [
"--tracelog",
"--addModPath",
"${workspaceFolder}/ModTemplate/bin/Debug/Mods"
],
"console": "internalConsole",
"stopAtEntry": false
}
]
}

7
.vscode/settings.json vendored Normal file
View file

@ -0,0 +1,7 @@
{
"dotnet.defaultSolution": "ModTemplate.sln",
"files.associations": {
"server-*.txt": "log",
"client-*.txt": "log"
}
}

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

@ -0,0 +1,28 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "build",
"command": "dotnet",
"type": "process",
"args": [
"build",
"-c",
"Debug",
"${workspaceFolder}/ModTemplate/ModTemplate.csproj"
],
"problemMatcher": "$msCompile"
},
{
"label": "package",
"command": "dotnet",
"type": "process",
"args": [
"run",
"--project",
"${workspaceFolder}/CakeBuild/CakeBuild.csproj"
],
"problemMatcher": "$msCompile"
}
]
}