Skip to content

Commit f10371d

Browse files
committed
Upgrade PolySharp to 1.16
1 parent e389c21 commit f10371d

4 files changed

Lines changed: 25 additions & 6 deletions

File tree

‎.github/workflows/build-and-test.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ jobs:
6767
msbuild-architecture: x64
6868

6969
- name: Install Dependencies
70-
run: msbuild $env:Solution_Name /t:Restore /p:FullTargets=true
70+
run: msbuild $env:Solution_Name /m /t:Restore /p:FullTargets=true
7171

7272
- name: Pack
73-
run: msbuild $env:Solution_Name /t:Pack /p:FullTargets=true /p:Configuration=Release /p:PackageOutputPath=../nugets /p:VersionSuffix=build.${{ github.run_number }}.${{ github.run_attempt }}
73+
run: msbuild $env:Solution_Name /m /t:Pack /p:FullTargets=true /p:Configuration=Release /p:PackageOutputPath=../nugets /p:VersionSuffix=build.${{ github.run_number }}.${{ github.run_attempt }}
7474

7575
- name: Publish
7676
if: ${{ github.event_name == 'push' && github.ref_name == 'main' }}
@@ -82,5 +82,5 @@ jobs:
8282
- name: Upload
8383
uses: actions/upload-artifact@v6
8484
with:
85-
name: Nuget Package
85+
name: NuGet Package
8686
path: nugets/**

‎AdvancedSharpAdbClient.Tests/AdvancedSharpAdbClient.Tests.csproj‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@
2020
</Choose>
2121

2222
<ItemGroup>
23-
<PackageReference Include="coverlet.msbuild" Version="6.0.4" PrivateAssets="all">
23+
<PackageReference Include="coverlet.msbuild" Version="10.0.1" PrivateAssets="all">
2424
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2525
</PackageReference>
26-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.0.1" />
26+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.6.0" />
2727
<PackageReference Include="NSubstitute" Version="5.3.0" />
2828
<PackageReference Include="xunit.runner.visualstudio" Version="3.1.5" PrivateAssets="all">
2929
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>

‎AdvancedSharpAdbClient/AdvancedSharpAdbClient.csproj‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
</ItemGroup>
7070

7171
<ItemGroup>
72-
<PackageReference Include="PolySharp" Version="1.15.0" PrivateAssets="all" />
72+
<PackageReference Include="PolySharp" Version="1.16.0" PrivateAssets="all" />
7373
</ItemGroup>
7474

7575
<ItemGroup Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net2.0'))
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#if !NET40_OR_GREATER && !NETCOREAPP && !COMP_NETSTANDARD2_0
2+
// Licensed to the .NET Foundation under one or more agreements.
3+
// The .NET Foundation licenses this file to you under the MIT license.
4+
5+
namespace System.Diagnostics.CodeAnalysis
6+
{
7+
/// <summary>
8+
/// Specifies that the attributed code should be excluded from code coverage information.
9+
/// </summary>
10+
[AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Class | AttributeTargets.Constructor | AttributeTargets.Event | AttributeTargets.Interface | AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Struct, Inherited = false, AllowMultiple = false)]
11+
public sealed class ExcludeFromCodeCoverageAttribute : Attribute
12+
{
13+
/// <summary>
14+
/// Gets or sets the justification for excluding the member from code coverage.
15+
/// </summary>
16+
public string? Justification { get; set; }
17+
}
18+
}
19+
#endif

0 commit comments

Comments
 (0)