Skip to content

Commit

Permalink
VS Code integration
Browse files Browse the repository at this point in the history
Added example json
  • Loading branch information
Aragas authored May 24, 2022
1 parent 0a7baf9 commit cdd7046
Show file tree
Hide file tree
Showing 5 changed files with 100 additions and 3 deletions.
30 changes: 30 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
// 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": ".NET Core Launch",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build",
"program": "${workspaceFolder}/src/P3D.Legacy.Server/bin/Debug/net6.0/P3D.Legacy.Server.dll",
"args": [],
"cwd": "${workspaceFolder}",
"stopAtEntry": false,
"serverReadyAction": {
"action": "openExternally",
"pattern": "\\bNow listening on:\\s+(https?://\\S+)"
},
"env": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
{
"name": ".NET Core Attach",
"type": "coreclr",
"request": "attach"
}
]
}
42 changes: 42 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "build",
"command": "dotnet",
"type": "process",
"args": [
"build",
"${workspaceFolder}/src/P3D.Legacy.Server/P3D.Legacy.Server.csproj",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary"
],
"problemMatcher": "$msCompile"
},
{
"label": "publish",
"command": "dotnet",
"type": "process",
"args": [
"publish",
"${workspaceFolder}/src/P3D.Legacy.Server/P3D.Legacy.Server.csproj",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary"
],
"problemMatcher": "$msCompile"
},
{
"label": "watch",
"command": "dotnet",
"type": "process",
"args": [
"watch",
"run",
"${workspaceFolder}/src/P3D.Legacy.Server/P3D.Legacy.Server.csproj",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary"
],
"problemMatcher": "$msCompile"
}
]
}
8 changes: 8 additions & 0 deletions NuGet.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<clear />
<add key="bedrockframework" value="https://f.feedz.io/davidfowl/bedrockframework/nuget/index.json" />
<add key="NuGet.org" value="https://api.nuget.org/v3/index.json" />
</packageSources>
</configuration>
3 changes: 0 additions & 3 deletions src/P3D.Legacy.Server/appsettings.Development.json

This file was deleted.

20 changes: 20 additions & 0 deletions src/P3D.Legacy.Server/appsettings.example.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"$schema": "https://json.schemastore.org/appsettings.json",
"Server": {
"Name": "Example Server",
"Message": "Put Server Description Here",
"MaxPlayers": 10,
"OfflineEnabled": false,
"ValidationEnabled": false,
"IsOfficial": false
},

"P3DServer": {
"IP": "0.0.0.0",
"Port": 15124
},

"Jwt": {
"RsaPrivateKey": ""
}
}

0 comments on commit cdd7046

Please sign in to comment.