chore: fix warning as error working
Some checks failed
default / dotnet-default-workflow (push) Failing after 1m6s
Some checks failed
default / dotnet-default-workflow (push) Failing after 1m6s
This commit is contained in:
parent
2c56791721
commit
799c4d622e
2 changed files with 10 additions and 1 deletions
|
|
@ -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">
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue