Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ dotnet_diagnostic.IDE0052.severity = warning
dotnet_diagnostic.IDE0076.severity = error
dotnet_diagnostic.IDE0077.severity = error
dotnet_diagnostic.IDE0043.severity = error
dotnet_diagnostic.IDE0370.severity = none # Remove unnecessary suppression (very buggy) TODO: removed when fixed
dotnet_diagnostic.CA2252.severity = none # Enable preview features (Adding the EnablePreviewFeatures property to every projects causes conflicts) TODO: remove when runtime-async is generally available

# yaml files
[*.{yml,yaml}]
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ jobs:
dotnet-version: |
8.0.x
9.0.x
10.0.x

- name: 🛠️ Restore dependencies
run: dotnet restore src/Packages.slnf
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ jobs:
dotnet-version: |
8.0.x
9.0.x
10.0.x

# cspell:ignore devel
- name: 🛠️ Install mono (🐧)
Expand Down
4 changes: 2 additions & 2 deletions Benchmark.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[CmdletBinding()]
param (
[ValidateSet('net8.0', 'net9.0', 'net10.0', 'net48')]
[ValidateSet('net8.0', 'net9.0', 'net10.0', 'net11.0', 'net48')]
[Parameter()]
[string]$tfm = 'net10.0',

Expand All @@ -21,5 +21,5 @@ else {
$Path = 'tests/Benchmark'
}

dotnet test --disable-logo --project 'tests/Benchmark.Tests' --configuration Release
dotnet test 'tests/Benchmark.Tests/Benchmark.Tests.csproj' --disable-logo --configuration Release
dotnet run --project $Path --configuration Release --framework $tfm
2 changes: 1 addition & 1 deletion CodeCoverage.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Remove-Item $ReportDir -Recurse -ErrorAction Ignore
New-Item -Type Directory $CoverageDir -ErrorAction Ignore

# Use solution filter to only test projects
dotnet test --disable-logo --solution 'tests/UnitTests.slnf' --coverage --coverage-output-format 'xml' --results-directory $CoverageDir --coverage-settings 'CodeCoverage.xml' -p:PublishAot=false
dotnet test 'tests/UnitTests.slnf' --disable-logo --coverage --coverage-output-format 'xml' --results-directory $CoverageDir --coverage-settings 'CodeCoverage.xml' -p:PublishAot=false

# create the report
dotnet tool restore
Expand Down
7 changes: 6 additions & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@
<EnableTUnitPolyfills>false</EnableTUnitPolyfills>
</PropertyGroup>

<!-- Runtime Async -->
<PropertyGroup Condition="'$(TargetFramework)' == 'net11.0'">
<Features>$(Features);runtime-async=on</Features>
</PropertyGroup>

<!-- Code Analysis -->
<PropertyGroup>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
Expand All @@ -28,7 +33,7 @@
<RunAnalyzersDuringLiveAnalysis>True</RunAnalyzersDuringLiveAnalysis>
<RunAnalyzersDuringBuild>True</RunAnalyzersDuringBuild>
<MSBuildTreatWarningsAsErrors>True</MSBuildTreatWarningsAsErrors>
<AnalysisLevel>10.0</AnalysisLevel>
<AnalysisLevel>11.0</AnalysisLevel>
<AnalysisMode>All</AnalysisMode>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<!-- <AnalysisModeStyle>Recommended</AnalysisModeStyle> -->
Expand Down
11 changes: 7 additions & 4 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<NuGetAuditLevel>low</NuGetAuditLevel>
</PropertyGroup>
<ItemGroup>
<GlobalPackageReference Include="Microsoft.CodeAnalysis.CSharp.CodeStyle" Version="5.0.0" />
<GlobalPackageReference Include="Microsoft.CodeAnalysis.CSharp.CodeStyle" Version="5.3.0-2.final" />
</ItemGroup>
<ItemGroup>
<PackageVersion Include="BenchmarkDotNet" Version="0.15.8" />
Expand All @@ -17,16 +17,19 @@
<PackageVersion Include="ICSharpCode.Decompiler" Version="10.0.0.8282-preview2" />
<PackageVersion Include="IsExternalInit" Version="1.0.3" />
<PackageVersion Include="MessagePack" Version="3.1.4" />
<PackageVersion Include="Microsoft.CodeAnalysis.Analyzers" Version="5.0.0-1.25277.114" />
<PackageVersion Include="Microsoft.CodeAnalysis.CSharp" Version="5.0.0" />
<PackageVersion Include="Microsoft.CodeAnalysis.Analyzers" Version="5.3.0-2.final" />
<PackageVersion Include="Microsoft.CodeAnalysis.CSharp" Version="5.3.0-2.final" />
<PackageVersion Include="Microsoft.Testing.Extensions.CodeCoverage" Version="18.5.2" />
<PackageVersion Include="Nullable" Version="1.3.1" />
<PackageVersion Include="PolySharp" Version="1.15.0" />
<PackageVersion Include="protobuf-net" Version="3.2.56" />
<PackageVersion Include="SharpFuzz" Version="2.2.0" />
<PackageVersion Include="System.Memory" Version="4.6.3" />
<PackageVersion Include="System.Text.Json" Version="10.0.3" />
<PackageVersion Include="System.Text.Json" Version="11.0.0-preview.1.26104.118" />
<PackageVersion Include="TUnit" Version="1.18.37" />
<PackageVersion Include="TUnit.Core" Version="1.18.37" />
</ItemGroup>
<ItemGroup Condition="!$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net10.0'))">
<PackageVersion Update="System.Text.Json" Version="10.0.3" />
</ItemGroup>
</Project>
4 changes: 2 additions & 2 deletions Fuzz.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ param (
[Parameter(Mandatory)]
[string]$ProjectName,

[ValidateSet('net8.0', 'net10.0')]
[ValidateSet('net8.0', 'net10.0', 'net11.0')]
[Parameter()]
[string]$tfm = 'net10.0',
[string]$tfm = 'net11.0',

[ValidateRange(1, 32)]
[Parameter()]
Expand Down
2 changes: 1 addition & 1 deletion docs/coverage/SummaryGithub.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

| | |
|:-------------------|:--------------------------------------|
| Parser: | MultiReport (10x DynamicCodeCoverage) |
| Parser: | MultiReport (12x DynamicCodeCoverage) |
| Assemblies: | 3 |
| Classes: | 53 |
| Files: | 63 |
Expand Down
4 changes: 2 additions & 2 deletions global.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"sdk": {
"version": "10.0.103",
"version": "11.0.100-preview.1",
"rollForward": "latestFeature",
"allowPrerelease": false
"allowPrerelease": true
},
"test": {
"runner": "Microsoft.Testing.Platform"
Expand Down
2 changes: 1 addition & 1 deletion samples/Samples.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net8.0;net10.0;net48</TargetFrameworks>
<TargetFrameworks>net8.0;net10.0;net11.0;net48</TargetFrameworks>
<IsPackable>false</IsPackable>
<OutputType>Exe</OutputType>
</PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/Bshox.Utils/Bshox.Utils.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>netstandard2.0;net8.0;net9.0;net10.0</TargetFrameworks>
<TargetFrameworks>netstandard2.0;net8.0;net9.0;net10.0;net11.0</TargetFrameworks>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<IsAotCompatible Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net8.0'))">true</IsAotCompatible>
Expand Down
2 changes: 1 addition & 1 deletion src/Bshox/Bshox.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>netstandard2.0;net8.0;net9.0;net10.0</TargetFrameworks>
<TargetFrameworks>netstandard2.0;net8.0;net9.0;net10.0;net11.0</TargetFrameworks>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<RootNamespace>Bshox</RootNamespace>
<BeforePack>$(BeforePack);IncludeAnalyzersInPackage</BeforePack>
Expand Down
2 changes: 1 addition & 1 deletion tests/ApiValidation/ApiValidation.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net8.0;net9.0;net10.0;net48</TargetFrameworks>
<TargetFrameworks>net8.0;net9.0;net10.0;net11.0;net48</TargetFrameworks>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<IsPackable>false</IsPackable>
<OutputType>Exe</OutputType>
Expand Down
Loading
Loading