Skip to content

Commit 6b827cd

Browse files
pgrawehrjoperezr
andauthored
Update external dependencies (#2128)
* Update external dependencies * Minor issues with new Analyzers * Fix obsolete functions --------- Co-authored-by: Jose Perez Rodriguez <[email protected]>
1 parent d2cb9a2 commit 6b827cd

File tree

14 files changed

+19
-38
lines changed

14 files changed

+19
-38
lines changed

eng/Analyzers.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ file which is not marked as such, making StyleCop fail. -->
88
</PropertyGroup>
99
<ItemGroup Condition="'$(MSBuildProjectExtension)' == '.csproj'">
1010
<AdditionalFiles Include="$(MSBuildThisFileDirectory)\stylecop.json" Link="stylecop.json" />
11-
<PackageReference Include="StyleCop.Analyzers" Version="1.2.0-beta.333">
11+
<PackageReference Include="StyleCop.Analyzers" Version="1.2.0-beta.435">
1212
<PrivateAssets>all</PrivateAssets>
1313
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1414
</PackageReference>

eng/StyleCop.Analyzers.ruleset

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@
136136
<Rule Id="SA1515" Action="None" /> <!-- Single-line comment should be preceded by blank line -->
137137
<Rule Id="SA1516" Action="None" /> <!-- Elements should be separated by blank line -->
138138
<Rule Id="SA1517" Action="Error" />
139-
<Rule Id="SA1518" Action="Error" />
139+
<Rule Id="SA1518" Action="None" /> <!-- Files must end with exactly one newline -->
140140
<Rule Id="SA1519" Action="Error" />
141141
<Rule Id="SA1520" Action="Error" />
142142
<Rule Id="SA1600" Action="None" /> <!-- Elements should be documented -->

eng/Versions.external.props

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
<Project>
22
<!-- These references to third-party libraries are included in all projects except System.Device.Gpio and the build wrapper project -->
33
<ItemGroup Condition="'$(MSBuildProjectName)' != 'System.Device.Gpio' And '$(MSBuildProjectName)' != 'build'">
4-
<PackageReference Include="UnitsNet" Version="5.1.0" />
4+
<PackageReference Include="UnitsNet" Version="5.31.0" />
55
</ItemGroup>
66

77
<!-- Automatically include these assemblies in all test projects -->
88
<ItemGroup Condition="$(MSBuildProjectName.EndsWith('Tests'))">
99
<PackageReference Include="Moq" Version="4.16.1" />
10-
<PackageReference Include="xunit" Version="2.4.1" />
11-
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
10+
<PackageReference Include="xunit" Version="2.5.0" />
11+
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.0">
1212
<PrivateAssets>all</PrivateAssets>
1313
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1414
</PackageReference>
15-
<PackageReference Include="xunit.runner.utility" Version="2.4.1" />
16-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.9.4" />
15+
<PackageReference Include="xunit.runner.utility" Version="2.5.0" />
16+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.7.2" />
17+
<PackageReference Include="Shouldly" Version="4.2.1" />
1718
</ItemGroup>
1819
</Project>

src/System.Device.Gpio.Tests/GpioPinTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public void TestOpenPin()
3737
// Act
3838
GpioPin pin = ctrl.OpenPin(PinNumber, PinMode.Input);
3939
// Assert
40-
Assert.Equal(pin.PinNumber, PinNumber);
40+
Assert.Equal(PinNumber, pin.PinNumber);
4141
Assert.Equal(PinMode.Input, pin.GetPinMode());
4242
}
4343

src/devices/Ags01db/Ags01db.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@
1111
<None Remove="README.md" />
1212
<None Remove="sensor.jpg" />
1313
</ItemGroup>
14-
</Project>
14+
</Project>

src/devices/Ags01db/Register.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ internal enum Register : byte
1010
ASG_VERSION_MSB = 0x0A,
1111
ASG_VERSION_LSB = 0x01
1212
}
13-
}
13+
}

src/devices/Button/tests/Button.tests.csproj

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,6 @@
88
<RootNamespace>Iot.Device.Button.Tests</RootNamespace>
99
</PropertyGroup>
1010

11-
<ItemGroup>
12-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.9.4" />
13-
<PackageReference Include="xunit" Version="2.4.1" />
14-
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
15-
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
16-
<PrivateAssets>all</PrivateAssets>
17-
</PackageReference>
18-
<PackageReference Include="coverlet.collector" Version="3.0.2">
19-
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
20-
<PrivateAssets>all</PrivateAssets>
21-
</PackageReference>
22-
</ItemGroup>
23-
2411
<ItemGroup>
2512
<ProjectReference Include="..\Button.csproj" />
2613
</ItemGroup>

src/devices/Card/Ndef/tests/Ndef.Tests.csproj

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@
55
<IsPackable>false</IsPackable>
66
</PropertyGroup>
77

8-
<ItemGroup>
9-
<PackageReference Include="coverlet.collector" Version="1.2.0" />
10-
</ItemGroup>
11-
128
<ItemGroup>
139
<ProjectReference Include="..\Ndef.csproj" />
1410
</ItemGroup>

src/devices/HardwareMonitor/OpenHardwareMonitor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,7 @@ private void MonitorThread()
593593
/// <exception cref="ArgumentOutOfRangeException"><paramref name="monitoringInterval"/> is less than 0.</exception>
594594
public void EnableDerivedSensors(Area cpuDieSize = default, TimeSpan monitoringInterval = default)
595595
{
596-
if (cpuDieSize.Equals(Area.Zero, 0, ComparisonType.Absolute))
596+
if (cpuDieSize.Equals(Area.Zero, Area.Zero))
597597
{
598598
// Values for some recent intel chips (coffee lake)
599599
if (LogicalProcessors <= 4)

src/devices/Nmea0183/tests/Ais/AisTargetTests.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ public void ExtrapolatePositionWithRotation()
4848
ship.RateOfTurn = RotationalSpeed.FromDegreesPerMinute(10);
4949
ship2 = ship.EstimatePosition(TimeSpan.FromMinutes(10), TimeSpan.FromSeconds(20));
5050
Assert.Equal(Angle.FromDegrees(100).Value, ship2.CourseOverGround.Value, 3);
51-
Assert.Equal(45.015124163, ship2.Position.Latitude, 9);
52-
Assert.Equal(9.026965951, ship2.Position.Longitude, 9);
51+
Assert.Equal(45.015124163, ship2.Position.Latitude, 7);
52+
Assert.Equal(9.026965951, ship2.Position.Longitude, 7);
5353
}
5454

5555
[Fact]
@@ -81,8 +81,8 @@ public void ExtrapolatePositionWithRotationAndGivenTime()
8181
var ship2 = ship.EstimatePosition(t + TimeSpan.FromMinutes(10), TimeSpan.FromSeconds(20));
8282
Assert.Equal(t + TimeSpan.FromMinutes(10), ship2.LastSeen);
8383
Assert.Equal(Angle.FromDegrees(100).Value, ship2.CourseOverGround.Value, 3);
84-
Assert.Equal(45.015124163, ship2.Position.Latitude, 9);
85-
Assert.Equal(9.026965951, ship2.Position.Longitude, 9);
84+
Assert.Equal(45.015124163, ship2.Position.Latitude, 7);
85+
Assert.Equal(9.026965951, ship2.Position.Longitude, 7);
8686
}
8787
}
8888
}

0 commit comments

Comments
 (0)