Skip to content

Commit 1916f6d

Browse files
authored
Merge pull request #111 from Umplify/110-remove-the-obsolete-attribute
Remove the obsolete attribute and add the readme file to the NuGet package
2 parents 50fa3bb + 5291177 commit 1916f6d

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

examples/Xunit.Microsoft.DependencyInjection.ExampleTests/Fixtures/TestFixture.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ protected override void AddServices(IServiceCollection services, IConfiguration?
1010
protected override ValueTask DisposeAsyncCore()
1111
=> new();
1212

13-
[Obsolete]
1413
protected override IEnumerable<string> GetConfigurationFiles()
1514
{
1615
yield return "appsettings.json";

src/Abstracts/TestBedFixture.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@ public IServiceProvider GetServiceProvider(ITestOutputHelper testOutputHelper)
4040
=> GetServiceProvider(testOutputHelper).GetService<T>();
4141

4242
protected abstract void AddServices(IServiceCollection services, IConfiguration? configuration);
43-
44-
[Obsolete("This method is deprecated. Please override and use GetTestAppSettings() method instead.", true)]
4543
protected abstract IEnumerable<string> GetConfigurationFiles();
4644
protected abstract IEnumerable<TestAppSettings> GetTestAppSettings();
4745

src/Xunit.Microsoft.DependencyInjection.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<LangVersion>latest</LangVersion>
55
<Nullable>enable</Nullable>
66
<ImplicitUsings>enable</ImplicitUsings>
7+
<PackageReadmeFile>README.md</PackageReadmeFile>
78
</PropertyGroup>
89
<ItemGroup>
910
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="6.0.0"/>
@@ -14,6 +15,9 @@
1415
<PackageReference Include="xunit.core" Version="2.4.1"/>
1516
<PackageReference Include="Microsoft.Extensions.Configuration.EnvironmentVariables" Version="6.0.1"/>
1617
</ItemGroup>
18+
<ItemGroup>
19+
<None Include="..\README.md" Pack="true" PackagePath="\"/>
20+
</ItemGroup>
1721
<ItemGroup>
1822
<Folder Include="Abstracts\"/>
1923
<Folder Include="TestsOrder\"/>

0 commit comments

Comments
 (0)