-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from geeooff/feature/cleanup
Added shared properties, vscode tasks, publishing features, nullable ref types, file-based namespaces, general cleanup, and code styling modernization
- Loading branch information
Showing
58 changed files
with
9,671 additions
and
2,327 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,86 @@ | ||
{ | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"label": "build", | ||
"command": "dotnet", | ||
"type": "process", | ||
"args": [ | ||
"build", | ||
"${workspaceFolder}/Console/ForzaData.Console.csproj", | ||
"/property:GenerateFullPaths=true", | ||
"/consoleloggerparameters:NoSummary" | ||
], | ||
"problemMatcher": "$msCompile" | ||
}, | ||
{ | ||
"label": "publish", | ||
"command": "dotnet", | ||
"type": "process", | ||
"args": [ | ||
"publish", | ||
"${workspaceFolder}/Console/ForzaData.Console.csproj", | ||
"/property:GenerateFullPaths=true", | ||
"/consoleloggerparameters:NoSummary" | ||
], | ||
"problemMatcher": "$msCompile" | ||
}, | ||
{ | ||
"label": "watch", | ||
"command": "dotnet", | ||
"type": "process", | ||
"args": [ | ||
"watch", | ||
"run", | ||
"${workspaceFolder}/Console/ForzaData.Console.csproj", | ||
"/property:GenerateFullPaths=true", | ||
"/consoleloggerparameters:NoSummary" | ||
], | ||
"problemMatcher": "$msCompile" | ||
} | ||
] | ||
"version": "2.0.0", | ||
"options": { | ||
"cwd": "${workspaceFolder}", | ||
}, | ||
"presentation": { | ||
"echo": false, | ||
"focus": true, | ||
"panel": "dedicated", | ||
"showReuseMessage": false, | ||
"clear": true | ||
}, | ||
"tasks": [ | ||
{ | ||
"label": "restore", | ||
"icon": { | ||
"id": "package" | ||
}, | ||
"command": "dotnet", | ||
"type": "process", | ||
"args": [ | ||
"restore", | ||
"--use-current-runtime", | ||
"--force-evaluate", | ||
"/property:GenerateFullPaths=true", | ||
"/consoleloggerparameters:NoSummary" | ||
], | ||
"problemMatcher": "$msCompile" | ||
}, | ||
{ | ||
"label": "build", | ||
"icon": { | ||
"id": "run" | ||
}, | ||
"command": "dotnet", | ||
"type": "process", | ||
"args": [ | ||
"build", | ||
"--use-current-runtime", | ||
"/property:GenerateFullPaths=true", | ||
"/consoleloggerparameters:NoSummary" | ||
], | ||
"problemMatcher": "$msCompile", | ||
"group": { | ||
"kind": "build", | ||
"isDefault": true | ||
} | ||
}, | ||
{ | ||
"label": "test", | ||
"icon": { | ||
"id": "beaker" | ||
}, | ||
"command": "dotnet", | ||
"type": "process", | ||
"args": [ | ||
"test", | ||
"--results-directory", "TestResults", | ||
"--logger", "html;LogFileName=TestResult.html", | ||
"--logger", "trx;LogFileName=TestResult.trx", | ||
"/property:GenerateFullPaths=true", | ||
"/consoleloggerparameters:NoSummary" | ||
], | ||
"problemMatcher": "$msCompile", | ||
"group": { | ||
"kind": "test", | ||
"isDefault": true | ||
} | ||
}, | ||
{ | ||
"label": "publish", | ||
"icon": { | ||
"id": "rocket" | ||
}, | ||
"command": "dotnet", | ||
"type": "process", | ||
"args": [ | ||
"publish", | ||
"--use-current-runtime", | ||
"/property:GenerateFullPaths=true", | ||
"/consoleloggerparameters:NoSummary" | ||
], | ||
"problemMatcher": "$msCompile" | ||
}, | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,15 @@ | ||
using ForzaData.Core; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Net; | ||
using System.Text; | ||
using PowArgs.Attributes; | ||
|
||
namespace ForzaData.Console | ||
namespace ForzaData.Console; | ||
|
||
public class Arguments | ||
{ | ||
public class Arguments | ||
{ | ||
[PowArgs.Attributes.Argument("UDP local network port to bind")] | ||
public int Port { get; set; } = 7777; | ||
[Argument("UDP local network port to bind")] | ||
public int Port { get; set; } = 7777; | ||
|
||
[PowArgs.Attributes.Argument("IP of server (your PC or console running the game) to listen to", required: true)] | ||
public string ServerIpAddress { get; set; } | ||
[Argument("IP of server (your PC or console running the game) to listen to", required: true)] | ||
public string? ServerIpAddress { get; set; } | ||
|
||
[PowArgs.Attributes.Argument("Show this program arguments help")] | ||
public bool Help { get; set; } = false; | ||
} | ||
[Argument("Show this program arguments help")] | ||
public bool Help { get; set; } = false; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.