Skip to content

Commit

Permalink
Merge pull request #266 from Umplify/264-the-coverlet-collection-nuge…
Browse files Browse the repository at this point in the history
…t-package-has-been-defined-twice

264 the coverlet collection nuget package has been defined twice
  • Loading branch information
Arash-Sabet authored Aug 30, 2024
2 parents 9e5a0ad + 6766f44 commit 7e23730
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion azure-pipeline-PR.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ steps:
displayName: 'Use .NET 8.0 sdk'
inputs:
packageType: sdk
version: 8.0.300
version: 8.0.401
installationPath: $(Agent.ToolsDirectory)/dotnet
- script: echo Started restoring the source code
- task: DotNetCoreCLI@2
Expand Down
2 changes: 1 addition & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ steps:
displayName: 'Use .NET 8.0 sdk'
inputs:
packageType: sdk
version: 8.0.302
version: 8.0.401
installationPath: $(Agent.ToolsDirectory)/dotnet
- script: echo Started restoring the source code
- task: DotNetCoreCLI@2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Configuration.UserSecrets" Version="8.0.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.10.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.0" />
<PackageReference Include="xunit" Version="2.9.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2">
<PrivateAssets>all</PrivateAssets>
Expand All @@ -21,7 +21,6 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="coverlet.collector" Version="6.0.2" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Options" Version="8.0.2" />
Expand Down
3 changes: 2 additions & 1 deletion src/Abstracts/TestBedFixture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ namespace Xunit.Microsoft.DependencyInjection.Abstracts;

public abstract class TestBedFixture : IDisposable, IAsyncDisposable
{
private readonly IServiceCollection _services;
private readonly ServiceCollection _services;
private ServiceProvider? _serviceProvider;
private bool _disposedValue;
private bool _disposedAsync;
Expand Down Expand Up @@ -79,6 +79,7 @@ public async ValueTask DisposeAsync()
Dispose();
_disposedAsync = true;
}
GC.SuppressFinalize(this);
}

protected abstract void AddServices(IServiceCollection services, IConfiguration? configuration);
Expand Down
4 changes: 1 addition & 3 deletions src/Logging/OutputLoggerProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,5 @@ public class OutputLoggerProvider(ITestOutputHelper testOutputHelper) : ILoggerP
public ILogger CreateLogger(string categoryName)
=> new OutputLogger(categoryName, _testOutputHelper);

public void Dispose()
{
}
public void Dispose() => GC.SuppressFinalize(this);
}

0 comments on commit 7e23730

Please sign in to comment.