File tree Expand file tree Collapse file tree 10 files changed +11
-23
lines changed Expand file tree Collapse file tree 10 files changed +11
-23
lines changed Original file line number Diff line number Diff line change @@ -8,9 +8,6 @@ indent_style = space
88indent_size = 4
99trim_trailing_whitespace = true
1010
11- [.gitmodules ]
12- indent_style = tab
13-
1411[* .{props,sln,targets} ]
1512indent_style = tab
1613
Original file line number Diff line number Diff line change 2121 - name : Restore dependencies
2222 run : dotnet restore -property:AutofacVersion=${{matrix.autofac}}
2323 - name : Build
24- run : dotnet build --no-restore
24+ run : dotnet build --no-restore /p:TreatWarningsAsErrors=true
2525 - name : Run Tests
26- run : dotnet test --no-restore --verbosity normal
26+ run : dotnet test --no-build
Original file line number Diff line number Diff line change 66 </PropertyGroup >
77 <PropertyGroup >
88 <IsPackable >false</IsPackable >
9- <TargetFramework >netcoreapp3.1 </TargetFramework >
10- <LangVersion >8 .0</LangVersion >
9+ <TargetFramework >net5.0 </TargetFramework >
10+ <LangVersion >9 .0</LangVersion >
1111 <Nullable >enable</Nullable >
12- <NullableContextOptions >enable</NullableContextOptions >
13- <TreatWarningsAsErrors >true</TreatWarningsAsErrors >
14- <GenerateDocumentationFile >true</GenerateDocumentationFile >
1512 </PropertyGroup >
1613 <ItemGroup >
1714 <ProjectReference Include =" ..\CompositionRoot\CompositionRoot.csproj" />
Original file line number Diff line number Diff line change 1- using Messerli . CompositionRoot . Test . Stubs ;
2-
31namespace Messerli . CompositionRoot . Test . Stubs
42{
53 internal sealed class Bar : IBar
Original file line number Diff line number Diff line change 11using Autofac ;
2- using Messerli . CompositionRoot . Test . Stubs ;
32
43namespace Messerli . CompositionRoot . Test . Stubs
54{
Original file line number Diff line number Diff line change 77 </PropertyGroup >
88 <PropertyGroup >
99 <TargetFrameworks >netcoreapp3.1;netstandard2.1;netstandard2.0</TargetFrameworks >
10- <LangVersion >8 .0</LangVersion >
10+ <LangVersion >9 .0</LangVersion >
1111 <Nullable >enable</Nullable >
12- <TreatWarningsAsErrors >true</TreatWarningsAsErrors >
13- <GenerateDocumentationFile >true</GenerateDocumentationFile >
1412 </PropertyGroup >
1513 <PropertyGroup >
1614 <PackageId >Messerli.CompositionRoot</PackageId >
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ namespace Messerli.CompositionRoot
55{
66 public sealed class CompositionRootBuilder
77 {
8- private readonly ContainerBuilder _builder = new ContainerBuilder ( ) ;
8+ private readonly ContainerBuilder _builder = new ( ) ;
99
1010 public CompositionRootBuilder RegisterModule < T > ( )
1111 where T : IModule , new ( )
Original file line number Diff line number Diff line change @@ -38,7 +38,6 @@ public ModuleBuilder Register(Register registrationFunction)
3838 public IModule Build ( )
3939 => new ModuleRegistrar ( _registrations ) ;
4040
41- private static ModuleBuilder ShallowClone ( ImmutableList < Register > registrations )
42- => new ModuleBuilder ( registrations ) ;
41+ private static ModuleBuilder ShallowClone ( ImmutableList < Register > registrations ) => new ( registrations ) ;
4342 }
4443}
Original file line number Diff line number Diff line change 66 <PackageReference Update =" System.Collections.Immutable" Version =" 1.6" />
77 </ItemGroup >
88 <ItemGroup Label =" Build Dependencies" >
9- <PackageReference Update =" Messerli.CodeStyle" Version =" [1. 2.1, 2) " />
9+ <PackageReference Update =" Messerli.CodeStyle" Version =" 2.1.1 " />
1010 </ItemGroup >
1111 <ItemGroup Label =" Test Dependencies" >
1212 <PackageReference Update =" Microsoft.NET.Test.Sdk" Version =" [15.9.2, 16)" />
Original file line number Diff line number Diff line change 11{
22 "sdk" : {
3- "version" : " 3.1 .402" ,
4- "rollForward" : " latestPatch "
3+ "version" : " 5.0 .402" ,
4+ "rollForward" : " latestFeature "
55 },
66 "msbuild-sdks" : {
7- "Microsoft.Build.CentralPackageVersions" : " 2.0.52 "
7+ "Microsoft.Build.CentralPackageVersions" : " 2.0.79 "
88 }
99}
You can’t perform that action at this time.
0 commit comments