Skip to content

Commit f7646a0

Browse files
linkdotnetdependabot[bot]egilbUnitBotJelleHissink
committed
V2 net8 (#1054)
* build(deps): Bump SonarAnalyzer.CSharp from 8.51.0.59060 to 8.52.0.60960 Bumps [SonarAnalyzer.CSharp](https://github.com/SonarSource/sonar-dotnet) from 8.51.0.59060 to 8.52.0.60960. - [Release notes](https://github.com/SonarSource/sonar-dotnet/releases) - [Commits](SonarSource/sonar-dotnet@8.51.0.59060...8.52.0.60960) --- updated-dependencies: - dependency-name: SonarAnalyzer.CSharp dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * build: set AccelerateBuildsInVisualStudio to true * chore: upgrade anglesharp.diffing to 0.17.1 * docs: update changelog * Revert AngleSharp from 1.0.1 to 0.17.1 This reverts commit 8ac537a. # Conflicts: # src/AngleSharpWrappers/AngleSharpWrappers.csproj # src/bunit.web/bunit.web.csproj * Set version to '1.15' * Set version to '1.16-preview' * Updated CHANGELOG.md for 1.15.5 release * fix: allow semantic comparer to compare IHtmlUnknownElement types * Set version to '1.16' * Set version to '1.17-preview' * Updated CHANGELOG.md for 1.16.2 release * fix: wrong type assignment in doc (#975) * refactor: Use PackageOutputPath instead of -o * build(deps): Bump System.Text.Json from 7.0.1 to 7.0.2 Bumps [System.Text.Json](https://github.com/dotnet/runtime) from 7.0.1 to 7.0.2. - [Release notes](https://github.com/dotnet/runtime/releases) - [Commits](dotnet/runtime@v7.0.1...v7.0.2) --- updated-dependencies: - dependency-name: System.Text.Json dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * Honor preventdefault for events so they don't bubble (#982) * Honor preventdefault for events so they don't bubble * Small change to fix the normal bubbling events * Small rename of a private method to better indicate its intention * Improvement and simplification * Build fix by removing an empty statement * Changelog * formatting of the changelog * Updated changelog --------- Co-authored-by: Steven Giesel <stgiesel35@gmail.com> * build(deps): Bump BenchmarkDotNet from 0.13.4 to 0.13.5 Bumps [BenchmarkDotNet](https://github.com/dotnet/BenchmarkDotNet) from 0.13.4 to 0.13.5. - [Release notes](https://github.com/dotnet/BenchmarkDotNet/releases) - [Commits](dotnet/BenchmarkDotNet@v0.13.4...v0.13.5) --- updated-dependencies: - dependency-name: BenchmarkDotNet dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * Set version to '1.17' * Set version to '1.18-preview' * Updated CHANGELOG.md for 1.17.2 release * build(deps): Bump AutoFixture from 4.17.0 to 4.18.0 Bumps [AutoFixture](https://github.com/AutoFixture/AutoFixture) from 4.17.0 to 4.18.0. - [Release notes](https://github.com/AutoFixture/AutoFixture/releases) - [Commits](AutoFixture/AutoFixture@v4.17.0...v4.18.0) --- updated-dependencies: - dependency-name: AutoFixture dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * build(deps): Bump AutoFixture.Xunit2 from 4.17.0 to 4.18.0 Bumps [AutoFixture.Xunit2](https://github.com/AutoFixture/AutoFixture) from 4.17.0 to 4.18.0. - [Release notes](https://github.com/AutoFixture/AutoFixture/releases) - [Commits](AutoFixture/AutoFixture@v4.17.0...v4.18.0) --- updated-dependencies: - dependency-name: AutoFixture.Xunit2 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * build(deps): Bump Microsoft.NET.Test.Sdk from 17.4.1 to 17.5.0 Bumps [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest) from 17.4.1 to 17.5.0. - [Release notes](https://github.com/microsoft/vstest/releases) - [Changelog](https://github.com/microsoft/vstest/blob/main/docs/releases.md) - [Commits](microsoft/vstest@v17.4.1...v17.5.0) --- updated-dependencies: - dependency-name: Microsoft.NET.Test.Sdk dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * fix: Escape text inside html tag and attributes * fix: Added tests for escpable characters * fix: Escape text inside html tag * Added changelog entry * chore: code cleanup * fix: optimize char replacement --------- Co-authored-by: Egil Hansen <egil@assimilated.dk> * build(deps): Bump SonarAnalyzer.CSharp from 8.52.0.60960 to 8.53.0.62665 (#988) * build(deps): Bump SonarAnalyzer.CSharp from 8.52.0.60960 to 8.53.0.62665 Bumps [SonarAnalyzer.CSharp](https://github.com/SonarSource/sonar-dotnet) from 8.52.0.60960 to 8.53.0.62665. - [Release notes](https://github.com/SonarSource/sonar-dotnet/releases) - [Commits](SonarSource/sonar-dotnet@8.52.0.60960...8.53.0.62665) --- updated-dependencies: - dependency-name: SonarAnalyzer.CSharp dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * chore: code analyzer rules code updates --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Egil Hansen <egil@assimilated.dk> * fix: submit button/input element submits form (#1000) * fix: submit button/input element submits form * handle other edge cases * code clean up * simplify conditionals * Set version to '1.18' * Set version to '1.19-preview' * Updated CHANGELOG.md for 1.18.4 release * chore: use file scoped namespaces * Simplify null coalescing * refactor: use early return and simplify call * fix(nullable): forward nullability correctly (#1013) * fix(nullable): forward nullability correctly * Update src/bunit.web/TestContext.cs Co-authored-by: Egil Hansen <egil@assimilated.dk> --------- Co-authored-by: Egil Hansen <egil@assimilated.dk> * docs: improve examples of semantic comparison modifiers * build(deps): Bump AngleSharp.Diffing from 0.17.1 to 0.18.1 Bumps [AngleSharp.Diffing](https://github.com/AngleSharp/AngleSharp.Diffing) from 0.17.1 to 0.18.1. - [Release notes](https://github.com/AngleSharp/AngleSharp.Diffing/releases) - [Changelog](https://github.com/AngleSharp/AngleSharp.Diffing/blob/devel/CHANGELOG.md) - [Commits](AngleSharp/AngleSharp.Diffing@v0.17.1...v0.18.1) --- updated-dependencies: - dependency-name: AngleSharp.Diffing dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * docs: Use TestContext as base class for Passing parameters to components (#1034) * refactor: Use TestContext as base class * fixes to docs * Indent size 2 * fix getting started and index --------- Co-authored-by: Egil Hansen <egil@assimilated.dk> * docs: broken sample code * doc: fixes to sample code to make it compile * docs: added CounterTest.razor * docs: fix code references, added missing samples * docs: Use TestContext as base class for Passing parameters to components (#1034) * refactor: Use TestContext as base class * fixes to docs * Indent size 2 * fix getting started and index --------- Co-authored-by: Egil Hansen <egil@assimilated.dk> * docs: broken sample code * doc: fixes to sample code to make it compile * docs: added CounterTest.razor * docs: fix code references, added missing samples * docs: change code ref to correct type * chore: code clean up * fix: clean up tests * fix: run markup updates in users sync context * fix: synchronize code that reads/writes to the internal render tree in TestRenderer/Renderer * build(deps): Bump SonarAnalyzer.CSharp from 8.54.0.63966 to 8.56.0.67649 Bumps [SonarAnalyzer.CSharp](https://github.com/SonarSource/sonar-dotnet) from 8.54.0.63966 to 8.56.0.67649. - [Release notes](https://github.com/SonarSource/sonar-dotnet/releases) - [Commits](https://github.com/SonarSource/sonar-dotnet/commits/8.56.0.67649) --- updated-dependencies: - dependency-name: SonarAnalyzer.CSharp dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * build(deps): Bump dotnet-serve from 1.7.125 to 1.10.155 Bumps [dotnet-serve](https://github.com/natemcmaster/dotnet-serve) from 1.7.125 to 1.10.155. - [Release notes](https://github.com/natemcmaster/dotnet-serve/releases) - [Commits](https://github.com/natemcmaster/dotnet-serve/commits/v1.10.155) --- updated-dependencies: - dependency-name: dotnet-serve dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * fix: Custom elements with attributes throw exception * fix: Better naming for test method (#1048) * fix: Better naming for test method * fix: Don't use unknown matcher first * fix: Don't use unknown matcher first * Add attribute * Merge stable into main (#1050) * docs: Use TestContext as base class for Passing parameters to components (#1034) * refactor: Use TestContext as base class * fixes to docs * Indent size 2 * fix getting started and index --------- Co-authored-by: Egil Hansen <egil@assimilated.dk> * docs: broken sample code * doc: fixes to sample code to make it compile * docs: added CounterTest.razor * docs: fix code references, added missing samples * docs: change code ref to correct type --------- Co-authored-by: Egil Hansen <egil@assimilated.dk> * Set version to '1.19' * Set version to '1.20-preview' * Updated CHANGELOG.md for 1.19.14 release * Update to net8.0 * Remove preprocessor directives * Wave 2 * Remove net60 dep in test * More changes * Bump actions --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Egil Hansen <egil@assimilated.dk> Co-authored-by: bUnit bot <bot@bunit.dev> Co-authored-by: JelleHissink <Jelle@CodeWise.nl> Co-authored-by: Florian Dohrendorf <LunicLynx@users.noreply.github.com>
1 parent 6097150 commit f7646a0

File tree

86 files changed

+475
-642
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+475
-642
lines changed

.editorconfig

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -256,12 +256,12 @@ dotnet_naming_style.prefix_type_parameters_with_t_style.capitalization = pascal_
256256
dotnet_naming_style.prefix_type_parameters_with_t_style.required_prefix = T
257257
# disallowed_style - Anything that has this style applied is marked as disallowed
258258
dotnet_naming_style.disallowed_style.capitalization = pascal_case
259-
dotnet_naming_style.disallowed_style.required_prefix =
260-
dotnet_naming_style.disallowed_style.required_suffix =
259+
dotnet_naming_style.disallowed_style.required_prefix =
260+
dotnet_naming_style.disallowed_style.required_suffix =
261261
# internal_error_style - This style should never occur... if it does, it indicates a bug in file or in the parser using the file
262262
dotnet_naming_style.internal_error_style.capitalization = pascal_case
263-
dotnet_naming_style.internal_error_style.required_prefix =
264-
dotnet_naming_style.internal_error_style.required_suffix =
263+
dotnet_naming_style.internal_error_style.required_prefix =
264+
dotnet_naming_style.internal_error_style.required_suffix =
265265

266266
##########################################
267267
# .NET Design Guideline Field Naming Rules
@@ -418,7 +418,7 @@ dotnet_diagnostic.MA0028.severity = none # https://github.com/atc-net
418418
# Microsoft - Code Analysis
419419
# https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/
420420
dotnet_diagnostic.CA1707.severity = error # https://github.com/atc-net/atc-coding-rules/blob/main/documentation/CodeAnalyzersRules/MicrosoftCodeAnalysis/CA1707.md
421-
dotnet_diagnostic.CA2007.severity = suggestion # https://github.com/atc-net/atc-coding-rules/blob/main/documentation/CodeAnalyzersRules/MicrosoftCodeAnalysis/CA2007.md
421+
dotnet_diagnostic.instance007.severity = suggestion # https://github.com/atc-net/atc-coding-rules/blob/main/documentation/CodeAnalyzersRules/MicrosoftCodeAnalysis/CA2007.md
422422

423423

424424
# SonarAnalyzer.CSharp
@@ -442,10 +442,18 @@ dotnet_diagnostic.MA0018.severity = none # MA0018: Do not declare static members
442442

443443
# Microsoft - Code Analysis
444444
# https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/
445+
dotnet_diagnostic.CA1000.severity = none # CA1000: Do not declare static members on generic types
445446
dotnet_diagnostic.CA1014.severity = none # CA1014: Mark assemblies with CLSCompliant
446447
dotnet_diagnostic.CA1031.severity = suggestion # CA1031: Do not catch general exception types
447448
dotnet_diagnostic.CA1032.severity = none # CA1032: Implement standard exception constructors
449+
dotnet_diagnostic.CA1054.severity = none # CA1054: Uri parameters should not be strings
450+
dotnet_diagnostic.CA1056.severity = none # CA1056: Uri properties should not be strings
451+
dotnet_diagnostic.CA1308.severity = none # CA1308: Normalize strings to uppercase
452+
dotnet_diagnostic.CA1710.severity = none # CA1710: Identifiers should have correct suffix
453+
dotnet_diagnostic.CA1711.severity = none # CA1711: Identifiers should not have incorrect suffix
454+
dotnet_diagnostic.CA2007.severity = none # CA2007: Consider calling ConfigureAwait on the awaited task
448455
dotnet_diagnostic.CA2201.severity = suggestion # CA2201: Do not raise reserved exception types
456+
dotnet_diagnostic.CA2225.severity = none # CA2225: Operator overloads have named alternates
449457

450458
# SonarAnalyzer.CSharp
451459
# https://rules.sonarsource.com/csharp
@@ -485,11 +493,16 @@ dotnet_diagnostic.MA0048.severity = silent # MA0048: File name must match type n
485493

486494
# Microsoft - Code Analysis
487495
# https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/
496+
dotnet_diagnostic.CA1019.severity = none # CA1019: Define accessors for attribute arguments
497+
dotnet_diagnostic.CA1034.severity = none # CA1034: Nested types should not be visible
488498
dotnet_diagnostic.CA1054.severity = none # CA1054: URI-like parameters should not be strings
489499
dotnet_diagnostic.CA1062.severity = none # CA1062: Validate arguments of public methods
500+
dotnet_diagnostic.CA1508.severity = none # CA1508: Avoid dead conditional code
490501
dotnet_diagnostic.CA1707.severity = none # CA1707: Identifiers should not contain underscores
502+
dotnet_diagnostic.CA1708.severity = none # CA1708: Identifiers should differ by more than case
491503
dotnet_diagnostic.CA1812.severity = none # CA1812: Avoid uninstantiated internal classes - components under test are never instantiated directly.
492504
dotnet_diagnostic.CA1822.severity = suggestion # CA1822: Mark members as static
505+
dotnet_diagnostic.CA1859.severity = none # CA1859:
493506
dotnet_diagnostic.CA2007.severity = none # CA2007: Consider calling ConfigureAwait on the awaited task
494507

495508
# Microsoft - FxCop

.github/workflows/docs-deploy.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,7 @@ jobs:
6464
uses: actions/setup-dotnet@v3
6565
with:
6666
dotnet-version: |
67-
6.0.x
68-
7.0.x
67+
8.0.x
6968
7069
- name: 🎨 Setup color
7170
run: |

.github/workflows/release-preview.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ jobs:
3232
uses: actions/setup-dotnet@v3
3333
with:
3434
dotnet-version: |
35-
6.0.x
36-
7.0.x
35+
8.0.x
3736
3837
- name: 🎨 Setup color
3938
run: |

.github/workflows/release.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,7 @@ jobs:
6363
uses: actions/setup-dotnet@v3
6464
with:
6565
dotnet-version: |
66-
6.0.x
67-
7.0.x
66+
8.0.x
6867
6968
- name: 🛠️ Update changelog
7069
uses: thomaseizinger/keep-a-changelog-new-release@1.3.0

.github/workflows/verification.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ jobs:
4444
uses: actions/setup-dotnet@v3
4545
with:
4646
dotnet-version: |
47-
6.0.x
48-
7.0.x
47+
8.0.x
4948
5049
- name: 🎨 Setup color
5150
if: matrix.os != 'windows-latest'

Directory.Build.props

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
33

44
<PropertyGroup Label="Configuration variables">
5-
<DotNet6Version>6.0.0</DotNet6Version>
6-
<DotNet7Version>7.0.0</DotNet7Version>
5+
<DotNet8Version>8.0.0-*</DotNet8Version>
76
</PropertyGroup>
87

98
<!-- Solution wide properties -->

benchmark/bunit.benchmarks.assets/bunit.benchmarks.assets.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk.Razor">
22

33
<PropertyGroup>
4-
<TargetFramework>net6.0</TargetFramework>
4+
<TargetFramework>net8.0</TargetFramework>
55
<Nullable>enable</Nullable>
66
<ImplicitUsings>enable</ImplicitUsings>
77
</PropertyGroup>

benchmark/bunit.benchmarks/bunit.benchmarks.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net6.0</TargetFramework>
5+
<TargetFramework>net8.0</TargetFramework>
66
<ImplicitUsings>enable</ImplicitUsings>
77
<SignAssembly>false</SignAssembly>
88
</PropertyGroup>
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
<Project Sdk="Microsoft.NET.Sdk.Razor">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net7.0</TargetFrameworks>
5-
<LangVersion>11.0</LangVersion>
4+
<TargetFrameworks>net8.0</TargetFrameworks>
65
<RootNamespace>Bunit.Docs.Samples</RootNamespace>
76
<ImplicitUsings>enable</ImplicitUsings>
87
<NoWarn>CA1014,NU5104</NoWarn>
98
<CheckEolTargetFramework>false</CheckEolTargetFramework>
109
</PropertyGroup>
1110

12-
<ItemGroup Condition="'$(TargetFramework)' == 'net7.0'">
11+
<ItemGroup>
1312
<PackageReference Include="Microsoft.Extensions.Logging" Version="7.0.0" />
1413
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="7.0.0" />
1514
<PackageReference Include="Microsoft.AspNetCore.Components" Version="7.0.0" />
1615
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="7.0.0" />
1716
<PackageReference Include="Microsoft.AspNetCore.Components.Authorization" Version="7.0.0" />
1817
</ItemGroup>
1918

19+
2020
</Project>

docs/samples/tests/Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project>
22
<PropertyGroup>
3-
<TargetFrameworks>net7.0</TargetFrameworks>
3+
<TargetFrameworks>net8.0</TargetFrameworks>
44
<IsPackable>false</IsPackable>
55
<LangVersion>11.0</LangVersion>
66
<ImplicitUsings>enable</ImplicitUsings>

0 commit comments

Comments
 (0)