From b02433c1b294e5ebf60d7ca3aa20e81e21be3211 Mon Sep 17 00:00:00 2001 From: Markus Ewald Date: Sat, 5 Jul 2025 12:50:57 +0200 Subject: [PATCH] Added Visual Studio Codium settings --- .editorconfig | 23 ++++++++++++++ .gitignore | 37 ++++++++++++++++++++++ .vscode/settings.json | 16 ++++++++++ .vscode/tasks.json | 64 ++++++++++++++++++++++++++++++++++++++ Directory.Build.props | 21 +++++++++++++ Properties/AssemblyInfo.cs | 4 +-- 6 files changed, 163 insertions(+), 2 deletions(-) create mode 100644 .editorconfig create mode 100644 .gitignore create mode 100644 .vscode/settings.json create mode 100644 .vscode/tasks.json create mode 100644 Directory.Build.props 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/.gitignore b/.gitignore new file mode 100644 index 0000000..8f98dca --- /dev/null +++ b/.gitignore @@ -0,0 +1,37 @@ +NuclexAvaloniaConfig.cmake + +# Visual Studio Codium +.vscode/* +!.vscode/settings.json +!.vscode/tasks.json +!.vscode/launch.json +!.vscode/extensions.json +!.vscode/*.code-snippets + +# Visual Studio +.vs/ +*.rsuser +*.suo +*.user +*.userosscache +*.sln.docstates +*.userprefs + +# NUnit +*.VisualState.xml +TestResult.xml +nunit-*.xml + +# NCrunch +_NCrunch_* +.*crunch*.local.xml +nCrunchTemp_* + +# Coverlet is a free, cross platform Code Coverage Tool +coverage*.json +coverage*.xml +coverage*.info + +# Artifacts +[Bb]in/ +[Oo]bj/ 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..0dee47e --- /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.Avalonia (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.Avalonia.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.Avalonia (netstandard-2.0).csproj", + "/property:GenerateFullPaths=true", + "/consoleloggerparameters:NoSummary" + ], + "options": { + "cwd": "${workspaceFolder}" + }, + "problemMatcher": "$msCompile" + } + ] +} diff --git a/Directory.Build.props b/Directory.Build.props new file mode 100644 index 0000000..9600b42 --- /dev/null +++ b/Directory.Build.props @@ -0,0 +1,21 @@ + + + + + obj\$(MSBuildProjectName) + + + diff --git a/Properties/AssemblyInfo.cs b/Properties/AssemblyInfo.cs index 54b637c..1c00625 100644 --- a/Properties/AssemblyInfo.cs +++ b/Properties/AssemblyInfo.cs @@ -1,7 +1,7 @@ #region Apache License 2.0 /* -Nuclex .NET Framework -Copyright (C) 2002-2024 Markus Ewald / Nuclex Development Labs +Nuclex Foundation libraries for .NET +Copyright (C) 2002-2025 Markus Ewald / Nuclex Development Labs Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.