Skip to content

Commit 3b7cd77

Browse files
authored
Merge pull request #25 from pfpack/release/v2.1.0-rc.1
release/v2.1.0-rc.1
2 parents fbc07ee + 0e08a57 commit 3b7cd77

File tree

7 files changed

+52
-28
lines changed

7 files changed

+52
-28
lines changed

.github/workflows/dotnet.yml

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: .NET
22

33
on:
44
push:
5-
branches: [ main, dev, dev/*, feature/*, fix/*, release/* ]
5+
branches: [ main, dev, feature/*, fix/*, release/* ]
66

77
pull_request:
88
branches: [ main ]
@@ -17,19 +17,25 @@ jobs:
1717
runs-on: ubuntu-latest
1818

1919
steps:
20-
- uses: actions/checkout@v2
20+
- uses: actions/checkout@v4
2121
- name: Setup .NET
22-
uses: actions/setup-dotnet@v1
22+
uses: actions/setup-dotnet@v3
2323
with:
24-
dotnet-version: 6.0.x
25-
include-prerelease: false
24+
dotnet-version: |
25+
6.0.x
26+
7.0.x
27+
8.0.x
28+
29+
# Create Local NuGet Source
2630

2731
- name: Create Local NuGet Directory
2832
run: mkdir ~/nuget
2933

3034
- name: Add Local Nuget Source
3135
run: dotnet nuget add source ~/nuget
3236

37+
# DependencyRegistry
38+
3339
- name: Restore DependencyRegistry
3440
run: dotnet restore ./src/*/*/DependencyRegistry.csproj
3541

@@ -45,6 +51,12 @@ jobs:
4551
- name: Test DependencyRegistry.Tests
4652
run: dotnet test ./src/*/*/DependencyRegistry.Tests.csproj --no-restore -c Release
4753

54+
# Push
55+
4856
- name: Push Packages
4957
if: ${{ github.event_name == 'release' }}
50-
run: dotnet nuget push "../../../nuget/*.nupkg" -s https://api.nuget.org/v3/index.json -k ${{ secrets.NuGetSourcePassword }} --skip-duplicate
58+
run: >
59+
dotnet nuget push "../../../nuget/*.nupkg"
60+
-s https://api.nuget.org/v3/index.json
61+
-k ${{ secrets.NuGetSourcePassword }}
62+
--skip-duplicate

.gitignore

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## Ignore Visual Studio temporary files, build results, and
22
## files generated by popular Visual Studio add-ons.
33
##
4-
## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
4+
## Get latest from https://github.com/github/gitignore/blob/main/VisualStudio.gitignore
55

66
# User-specific files
77
*.rsuser
@@ -206,9 +206,6 @@ PublishScripts/
206206
*.nuget.props
207207
*.nuget.targets
208208

209-
# Nuget personal access tokens and Credentials
210-
# nuget.config
211-
212209
# Microsoft Azure Build Output
213210
csx/
214211
*.build.csdef
@@ -297,6 +294,17 @@ node_modules/
297294
# Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
298295
*.vbw
299296

297+
# Visual Studio 6 auto-generated project file (contains which files were open etc.)
298+
*.vbp
299+
300+
# Visual Studio 6 workspace and project file (working project files containing files to include in project)
301+
*.dsw
302+
*.dsp
303+
304+
# Visual Studio 6 technical files
305+
*.ncb
306+
*.aps
307+
300308
# Visual Studio LightSwitch build output
301309
**/*.HTMLClient/GeneratedArtifacts
302310
**/*.DesktopClient/GeneratedArtifacts
@@ -353,6 +361,9 @@ ASALocalRun/
353361
# Local History for Visual Studio
354362
.localhistory/
355363

364+
# Visual Studio History (VSHistory) files
365+
.vshistory/
366+
356367
# BeatPulse healthcheck temp database
357368
healthchecksdb
358369

@@ -384,5 +395,4 @@ FodyWeavers.xsd
384395
*.msp
385396

386397
# JetBrains Rider
387-
.idea/
388398
*.sln.iml

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2020-2022 Andrei Sergeev, Pavel Moskovoy
3+
Copyright (c) 2020-2023 Andrei Sergeev, Pavel Moskovoy
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

src/dependency-registry/DependencyRegistry.Tests/DependencyRegistry.Tests.csproj

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net6.0</TargetFramework>
4+
<TargetFrameworks>net6.0;net7.0;net8.0</TargetFrameworks>
55
<ImplicitUsings>disable</ImplicitUsings>
66
<Nullable>enable</Nullable>
77
<InvariantGlobalization>true</InvariantGlobalization>
88
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
99
<IsPackable>false</IsPackable>
1010
<Authors>Andrei Sergeev, Pavel Moskovoy</Authors>
11-
<Copyright>Copyright © 2020-2022 Andrei Sergeev, Pavel Moskovoy</Copyright>
11+
<Copyright>Copyright © 2020-2023 Andrei Sergeev, Pavel Moskovoy</Copyright>
1212
<RootNamespace>PrimeFuncPack.DependencyRegistry.Tests</RootNamespace>
1313
<AssemblyName>PrimeFuncPack.DependencyRegistry.Tests</AssemblyName>
1414
</PropertyGroup>
@@ -18,15 +18,15 @@
1818
</ItemGroup>
1919

2020
<ItemGroup>
21-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.2.0" />
22-
<PackageReference Include="Moq" Version="4.18.1" />
21+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
22+
<PackageReference Include="Moq" Version="4.20.69" />
2323
<PackageReference Include="PrimeFuncPack.UnitTest.Data" Version="3.0.0" />
24-
<PackageReference Include="xunit" Version="2.4.1" />
25-
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5">
24+
<PackageReference Include="xunit" Version="2.6.2" />
25+
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.4">
2626
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2727
<PrivateAssets>all</PrivateAssets>
2828
</PackageReference>
29-
<PackageReference Include="coverlet.collector" Version="3.1.2">
29+
<PackageReference Include="coverlet.collector" Version="6.0.0">
3030
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
3131
<PrivateAssets>all</PrivateAssets>
3232
</PackageReference>

src/dependency-registry/DependencyRegistry.Tests/Tests.DependencyRegistrar.T/Test.RegisterScoped.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ partial class DependencyRegistrarTypedTest
1212
[Theory]
1313
[InlineData(null)]
1414
[InlineData(SomeString)]
15-
public void RegisterScoped_ExpectSourceServices(string regService)
15+
public void RegisterScoped_ExpectSourceServices(string? regService)
1616
{
1717
var mockServices = MockServiceCollection.CreateMock();
1818
var sourceServices = mockServices.Object;
1919

20-
var registrar = DependencyRegistrar<string>.Create(sourceServices, _ => regService);
20+
var registrar = DependencyRegistrar<string>.Create(sourceServices, _ => regService!);
2121

2222
var actualServices = registrar.RegisterScoped();
2323
Assert.Same(sourceServices, actualServices);

src/dependency-registry/DependencyRegistry.Tests/Tests.DependencyRegistrar/Test.RegisterScoped.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ partial class DependencyRegistrarTest
1212
[Theory]
1313
[InlineData(null)]
1414
[InlineData(SomeString)]
15-
public void RegisterScoped_ExpectSourceServices(string regService)
15+
public void RegisterScoped_ExpectSourceServices(string? regService)
1616
{
1717
var mockServices = MockServiceCollection.CreateMock();
1818
var sourceServices = mockServices.Object;
1919

20-
var registrar = DependencyRegistrar.Create(sourceServices, _ => regService);
20+
var registrar = DependencyRegistrar.Create(sourceServices, _ => regService!);
2121

2222
var actualServices = registrar.RegisterScoped();
2323
Assert.Same(sourceServices, actualServices);

src/dependency-registry/DependencyRegistry/DependencyRegistry.csproj

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net6.0</TargetFramework>
4+
<TargetFrameworks>net6.0;net7.0;net8.0</TargetFrameworks>
55
<ImplicitUsings>disable</ImplicitUsings>
66
<Nullable>enable</Nullable>
77
<InvariantGlobalization>true</InvariantGlobalization>
@@ -13,11 +13,11 @@
1313
<RepositoryUrl>https://github.com/pfpack/pfpack-dependency-registry</RepositoryUrl>
1414
<Company>pfpack</Company>
1515
<Authors>Andrei Sergeev, Pavel Moskovoy</Authors>
16-
<Copyright>Copyright © 2020-2022 Andrei Sergeev, Pavel Moskovoy</Copyright>
16+
<Copyright>Copyright © 2020-2023 Andrei Sergeev, Pavel Moskovoy</Copyright>
1717
<Description>PrimeFuncPack Dependency Registry is a library for .NET providing the dependency registrar targeted to both usual services and dependency trees built by PrimeFuncPack Dependency to register the dependencies in the .NET dependency injection mechanism.</Description>
1818
<RootNamespace>PrimeFuncPack</RootNamespace>
1919
<AssemblyName>PrimeFuncPack.DependencyRegistry</AssemblyName>
20-
<Version>2.0.2</Version>
20+
<Version>2.1.0-rc.1</Version>
2121
</PropertyGroup>
2222

2323
<ItemGroup>
@@ -32,8 +32,10 @@
3232
</ItemGroup>
3333

3434
<ItemGroup>
35-
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="6.0.0" />
36-
<PackageReference Include="PrimeFuncPack.Dependency.Core" Version="2.0.2" />
35+
<PackageReference Condition="'$(TargetFramework)' == 'net6.0'" Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="6.0.0" />
36+
<PackageReference Condition="'$(TargetFramework)' == 'net7.0'" Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="7.0.0" />
37+
<PackageReference Condition="'$(TargetFramework)' == 'net8.0'" Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="8.0.0" />
38+
<PackageReference Include="PrimeFuncPack.Dependency.Core" Version="2.1.0" />
3739
</ItemGroup>
3840

3941
</Project>

0 commit comments

Comments
 (0)