From fed4429f78b01dd71e785712bdf814eae2230d88 Mon Sep 17 00:00:00 2001 From: mlemanczyk Date: Sun, 3 Sep 2023 14:52:35 +0200 Subject: [PATCH] VS Code tasks.json fixed to build the entire solution. X-unit test settings adjusted for better performance. --- .vscode/tasks.json | 28 +++++++++++++------ .../Recyclable.CollectionsTests.csproj | 14 ++++++++-- Recyclable.CollectionsTests/xunit.runner.json | 6 ++++ 3 files changed, 37 insertions(+), 11 deletions(-) create mode 100644 Recyclable.CollectionsTests/xunit.runner.json diff --git a/.vscode/tasks.json b/.vscode/tasks.json index f921346..d67f306 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -1,6 +1,16 @@ { "version": "2.0.0", "tasks": [ + { + "isBuildCommand": true, + "label": "build", + "dependsOn": ["build debug", "build release"], + "problemMatcher": "$msCompile", + "group": { + "kind": "build", + "isDefault": true + } + }, { "isBuildCommand": true, "label": "build debug", @@ -8,12 +18,15 @@ "type": "process", "args": [ "build", - "${workspaceFolder}/Recyclable.Collections.Benchmarks/Recyclable.Collections.Benchmarks.csproj", + "${workspaceFolder}/Recyclable.Collections.sln", "/property:GenerateFullPaths=true", "/consoleloggerparameters:NoSummary", - "-f", "net7.0" ], - "problemMatcher": "$msCompile" + "problemMatcher": "$msCompile", + "group": { + "kind": "build", + "isDefault": false + } }, { "label": "build release", @@ -21,16 +34,15 @@ "type": "process", "args": [ "build", - "${workspaceFolder}/Recyclable.Collections.Benchmarks/Recyclable.Collections.Benchmarks.csproj", + "${workspaceFolder}/Recyclable.Collections.sln", "/property:GenerateFullPaths=true", "/consoleloggerparameters:NoSummary", "-c", "Release", - "-f", "net7.0" ], "problemMatcher": "$msCompile", "group": { "kind": "build", - "isDefault": true + "isDefault": false } }, { @@ -39,7 +51,7 @@ "type": "process", "args": [ "publish", - "${workspaceFolder}/Recyclable.Collections.Benchmarks/Recyclable.Collections.Benchmarks.csproj", + "${workspaceFolder}/Recyclable.Collections.sln", "/property:GenerateFullPaths=true", "/consoleloggerparameters:NoSummary" ], @@ -53,7 +65,7 @@ "watch", "run", "--project", - "${workspaceFolder}/Recyclable.Collections.Benchmarks/Recyclable.Collections.Benchmarks.csproj" + "${workspaceFolder}/Recyclable.Collections.sln" ], "problemMatcher": "$msCompile" } diff --git a/Recyclable.CollectionsTests/Recyclable.CollectionsTests.csproj b/Recyclable.CollectionsTests/Recyclable.CollectionsTests.csproj index 215afa8..3e6de67 100644 --- a/Recyclable.CollectionsTests/Recyclable.CollectionsTests.csproj +++ b/Recyclable.CollectionsTests/Recyclable.CollectionsTests.csproj @@ -1,12 +1,10 @@  - net6.0 + net6.0;net7.0 enable enable - false - AnyCPU;x64 @@ -19,6 +17,10 @@ runtime; build; native; contentfiles; analyzers; buildtransitive + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + all runtime; build; native; contentfiles; analyzers; buildtransitive @@ -29,4 +31,10 @@ + + + PreserveNewest + + + diff --git a/Recyclable.CollectionsTests/xunit.runner.json b/Recyclable.CollectionsTests/xunit.runner.json new file mode 100644 index 0000000..df0bc99 --- /dev/null +++ b/Recyclable.CollectionsTests/xunit.runner.json @@ -0,0 +1,6 @@ +{ + "$schema": "https://xunit.net/schema/current/xunit.runner.schema.json", + "methodDisplay": "method", + "parallelizeTestCollections": true, + "preEnumerateTheories": false +}