reaqtive / reaqtor

Reaqtor is a framework for reliable, stateful, distributed, and scalable event processing based on Rx.
https://reaqtive.net/
MIT License
627 stars 40 forks source link

Code analyzer errors when building with .NET 7.0 SDK #120

Closed idg10 closed 1 year ago

idg10 commented 2 years ago

With .NET SDK 7.0.102 installed, cloning the repo and running dotnet build All.sln as per the readme fails with various code analysis warnings, including:

C:\dev\reaqtive\reaqtor\Nuqleon\Core\BCL\Nuqleon.IO.StreamSegment\System\IO\StreamSegment.cs(20,33): error CA2213: 'StreamSegment' contains field '_stream' that is of IDisposable type 'Stream', but it is never disposed. Change the Dispose method on 'StreamSegment' to call Close or Dispose on this field. [C:\dev\reaqtive\reaqtor\Nuqleon\Core\BCL\Nuqleon.IO.StreamSegment\Nuqleon.IO.StreamSegment.csproj::TargetFramework=net6.0]
C:\dev\reaqtive\reaqtor\Nuqleon\Core\JSON\Tests.Nuqleon.Json\SerializerTests.cs(164,72): error IDE0200: Lambda expression can be removed [C:\dev\reaqtive\reaqtor\Nuqleon\Core\JSON\Tests.Nuqleon.Json\Tests.Nuqleon.Json.csproj::TargetFramework=netcoreapp
3.1]