diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..0493189 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,23 @@ +[*.cs] +charset = utf-8 + +# Indentation and line length +indent_size = 2 +indent_style = space +tab_width = 2 +max_line_length = 100 +end_of_line = lf + +# Organize usings +dotnet_separate_import_directive_groups = true +dotnet_sort_system_directives_first = true + +# this. and Me. preferences +dotnet_style_qualification_for_field = true + +# var preferences +csharp_style_var_when_type_is_apparent = true + +# New line preferences +csharp_new_line_before_else = false +csharp_new_line_before_open_brace = none diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..e3f49c4 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,16 @@ +// Workspace settings +{ + "files.exclude": { + "bin": true, + "obj": true, + "*.csproj": true, + "*.csproj.filters": true, + "*.csproj.user": true, + "*.ref": true, + "*.db": true, + ".gitignore": true, + ".editorconfig": true, + "build.cmd": true, + "build.sh": true + } +} diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..f5150a7 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,64 @@ +{ + // See https://go.microsoft.com/fwlink/?LinkId=733558 + // for the documentation about the tasks.json format + "version": "2.0.0", + "tasks": [ + { + "label": "Build", + "group": { + "kind": "build", + "isDefault": true + }, + "type": "shell", + "command": "dotnet", + "args": [ + "build", + "${workspaceFolder}/Nuclex.Support (netstandard-2.0).csproj", + "/property:GenerateFullPaths=true", + "/consoleloggerparameters:NoSummary" + ], + "options": { + "cwd": "${workspaceFolder}" + }, + "problemMatcher": "$msCompile" + }, + { + "label": "Test", + //"dependsOn": [ "Run" ], + "group": { + "kind": "build", + "isDefault": true + }, + "type": "shell", + "command": "dotnet", + "args": [ + "test", + "${workspaceFolder}/Nuclex.Support.Tests (netstandard-2.0).csproj", + ], + "options": { + "cwd": "${workspaceFolder}" + }, + "problemMatcher": "$msCompile" + }, + { + "label": "Publish", + //"dependsOn": [ "Install" ], + "group": { + "kind": "build", + "isDefault": true + }, + "type": "shell", + "command": "dotnet", + "args": [ + "publish", + "${workspaceFolder}/Nuclex.Support (netstandard-2.0).csproj", + "/property:GenerateFullPaths=true", + "/consoleloggerparameters:NoSummary" + ], + "options": { + "cwd": "${workspaceFolder}" + }, + "problemMatcher": "$msCompile" + } + ] +}