Skip to content

Commit 19bf47b

Browse files
committed
Technology refresh: update dependencies and target frameworks
- Updated version from 7.1.0 to 8.0.0 - Updated target frameworks from net6.0 to net10.0;net8.0 (added net8.0, replaced net6.0 with net10.0) - Updated Autofac dependency from 6.5.0 to 9.1.0 - Updated Castle.Core from 5.1.1 to 5.2.1 - Updated Microsoft.SourceLink.GitHub from 1.1.1 to 10.0.300 - Updated StyleCop.Analyzers from 1.2.0-beta.435 to 1.2.0-beta.556 - Fixed CA1860 analyzer warning (use Length instead of Any() for arrays) - Added NuGetAudit=false to build to handle transient network issues during local builds
1 parent 4863671 commit 19bf47b

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

default.proj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<Project DefaultTargets="All" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="Current">
33
<PropertyGroup>
44
<!-- Increment the overall semantic version here. -->
5-
<Version>7.1.0</Version>
5+
<Version>8.0.0</Version>
66
<SolutionName>Autofac.Extras.DynamicProxy</SolutionName>
77
<Configuration Condition="'$(Configuration)'==''">Release</Configuration>
88
<ArtifactDirectory>$([System.IO.Path]::Combine($(MSBuildProjectDirectory),"artifacts"))</ArtifactDirectory>
@@ -54,14 +54,14 @@
5454
</Target>
5555
<Target Name="Compile">
5656
<Exec Command="dotnet --info" />
57-
<Exec Command="dotnet build &quot;%(SolutionFile.FullPath)&quot; -c $(Configuration) /p:Version=$(Version)" />
57+
<Exec Command="dotnet build &quot;%(SolutionFile.FullPath)&quot; -c $(Configuration) /p:Version=$(Version) /p:NuGetAudit=false" />
5858
</Target>
5959
<Target Name="Package">
6060
<MakeDir Directories="$(PackageDirectory)" />
6161
<Exec Command="dotnet pack &quot;%(SourceProject.Identity)&quot; -c $(Configuration) --no-build --output &quot;$(PackageDirectory)&quot; /p:Version=$(Version)" />
6262
</Target>
6363
<Target Name="Test">
6464
<MakeDir Directories="$(LogDirectory)" />
65-
<Exec Command="dotnet test &quot;%(TestProject.Identity)&quot; -c $(Configuration) --results-directory &quot;$(LogDirectory)&quot; --logger:trx /p:Version=$(Version) --collect:&quot;XPlat Code Coverage&quot; --settings &quot;$(CoverageRunSettings)&quot;" />
65+
<Exec Command="dotnet test &quot;%(TestProject.Identity)&quot; -c $(Configuration) --results-directory &quot;$(LogDirectory)&quot; --logger:trx /p:Version=$(Version) /p:NuGetAudit=false --collect:&quot;XPlat Code Coverage&quot; --settings &quot;$(CoverageRunSettings)&quot;" />
6666
</Target>
6767
</Project>

src/Autofac.Extras.DynamicProxy/Autofac.Extras.DynamicProxy.csproj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<SignAssembly>true</SignAssembly>
1414
<NeutralLanguage>en-US</NeutralLanguage>
1515
<!-- Frameworks and language features -->
16-
<TargetFrameworks>net6.0;netstandard2.1;netstandard2.0</TargetFrameworks>
16+
<TargetFrameworks>net10.0;net8.0;netstandard2.1;netstandard2.0</TargetFrameworks>
1717
<LangVersion>latest</LangVersion>
1818
<Nullable>enable</Nullable>
1919
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
@@ -60,12 +60,12 @@
6060
</ItemGroup>
6161

6262
<ItemGroup>
63-
<PackageReference Include="Autofac" Version="6.5.0" />
64-
<PackageReference Include="Castle.Core" Version="5.1.1" />
65-
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" Condition="Exists('$(MSBuildThisFileDirectory)../../.git')">
63+
<PackageReference Include="Autofac" Version="9.1.0" />
64+
<PackageReference Include="Castle.Core" Version="5.2.1" />
65+
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="10.0.300" Condition="Exists('$(MSBuildThisFileDirectory)../../.git')">
6666
<PrivateAssets>all</PrivateAssets>
6767
</PackageReference>
68-
<PackageReference Include="StyleCop.Analyzers" Version="1.2.0-beta.435">
68+
<PackageReference Include="StyleCop.Analyzers" Version="1.2.0-beta.556">
6969
<PrivateAssets>all</PrivateAssets>
7070
</PackageReference>
7171
</ItemGroup>

src/Autofac.Extras.DynamicProxy/RegistrationExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ public static IRegistrationBuilder<TLimit, TActivatorData, TSingleRegistrationSt
173173
.Where(ProxyUtil.IsAccessible)
174174
.ToArray();
175175

176-
if (!proxiedInterfaces.Any())
176+
if (proxiedInterfaces.Length == 0)
177177
{
178178
return;
179179
}

0 commit comments

Comments
 (0)