Skip to content

Commit

Permalink
Merge pull request #20 from Tim-Maes/feature/update-net8
Browse files Browse the repository at this point in the history
Update to .NET 8
  • Loading branch information
Tim-Maes authored Dec 21, 2023
2 parents bf81a93 + 9971872 commit b0640fb
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/Bindicate.Tests/Bindicate.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Bindicate.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection;

namespace Bindicate.Tests.Generic;

Expand Down
1 change: 0 additions & 1 deletion src/Bindicate.Tests/Scoped/AddScopedAttributeTests.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Bindicate.Attributes;
using Bindicate.Configuration;
using Microsoft.Extensions.DependencyInjection;

namespace Bindicate.Tests.ScopedTests;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Bindicate.Attributes;
using Bindicate.Configuration;
using Bindicate.Tests.ScopedTests;
using Microsoft.Extensions.DependencyInjection;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Bindicate.Attributes;
using Bindicate.Configuration;
using Bindicate.Tests.ScopedTests;
using Microsoft.Extensions.DependencyInjection;

namespace Bindicate.Tests.Transient;

public class AddTransientAttributeTests
Expand Down
6 changes: 3 additions & 3 deletions src/Bindicate/Bindicate.csproj
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<Title>Bindicate</Title>
<Authors>Tim Maes</Authors>
<Description>Autowiring library. Easily add services to DI container by decorating your service with an attribute</Description>
<Description>Autowiring library. Easily add services to DI container by decorating your services with an attribute</Description>
<PackageProjectUrl>https://www.github.com/Tim-Maes/Bindicate</PackageProjectUrl>
<PackageReadmeFile>README.md</PackageReadmeFile>
<RepositoryUrl>https://www.github.com/Tim-Maes/Bindicate</RepositoryUrl>
<PackageTags>di, ioc, service, collection, extensions, attribute</PackageTags>
<PackageReleaseNotes>Add support for IOptions</PackageReleaseNotes>
<PackageLicenseFile>LICENSE.txt</PackageLicenseFile>
<Version>1.2.1</Version>
<Version>1.3</Version>
</PropertyGroup>

<ItemGroup>
Expand Down
5 changes: 3 additions & 2 deletions src/Bindicate/Configuration/AutowiringBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,15 @@ namespace Bindicate;

public class AutowiringBuilder
{
public IServiceCollection _services { get; }
private IServiceCollection _services { get; }

public Assembly _targetAssembly { get; }
private Assembly _targetAssembly { get; }

public AutowiringBuilder(IServiceCollection services, Assembly targetAssembly)
{
_services = services;
_targetAssembly = targetAssembly;

AddAutowiringForAssembly();
}

Expand Down

0 comments on commit b0640fb

Please sign in to comment.