Compare commits

...

2 commits

Author SHA1 Message Date
eaaa7abc77
chore: disable code format rules in test projects
Some checks failed
default / dotnet-default-workflow (push) Failing after 1m41s
2026-05-09 22:57:40 +02:00
799c4d622e
chore: fix warning as error working
Some checks failed
default / dotnet-default-workflow (push) Failing after 1m6s
2026-05-09 22:50:43 +02:00
4 changed files with 22 additions and 1 deletions

View file

@ -16,7 +16,7 @@
<AnalysisMode>Recommended</AnalysisMode>
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
<WarningsAsErrors>nullable</WarningsAsErrors>
<WarningsAsErrors Condition="'$(ContinuousIntegrationBuild)' == 'true'">true</WarningsAsErrors>
<TreatWarningsAsErrors Condition="'$(ContinuousIntegrationBuild)' == 'true'">true</TreatWarningsAsErrors>
</PropertyGroup>
<PropertyGroup Label="NuGet Package Info">

View file

@ -0,0 +1,6 @@
[*.{cs,vb}]
# disable IDE0060: Remove unused parameter
dotnet_diagnostic.IDE0060.severity = none
# disable IDE0005: Unnecessary using directive
dotnet_diagnostic.IDE0005.severity = none

View file

@ -0,0 +1,6 @@
[*.{cs,vb}]
# disable IDE0060: Remove unused parameter
dotnet_diagnostic.IDE0060.severity = none
# disable IDE0005: Unnecessary using directive
dotnet_diagnostic.IDE0005.severity = none

View file

@ -19,6 +19,14 @@ public partial class CommandTask<TResult> : IDisposable
ProcessId = processId;
}
/// <summary>
/// Finalizer to ensure resources are released.
/// </summary>
~CommandTask()
{
Dispose();
}
/// <summary>
/// Underlying task.
/// </summary>
@ -79,6 +87,7 @@ public partial class CommandTask<TResult> : IDisposable
public void Dispose()
{
Task.Dispose();
GC.SuppressFinalize(this);
}
}