Skip to content

Commit 437022b

Browse files
authored
Various version updates to bring project to using more current packages. (#1232)
* Version updates for: 1. AutoFixture 4.15.0->4.18.1 2. AutoFixture.Xunit2 4.15.0->4.18.1 3. Microsoft.Build.Utilities.Core 16.4.0->17.8.3 4. Microsoft.CodeAnalysis.CSharp.CodeStyle 4.4.0->4.8.0 5. Microsoft.CodeAnalysis.NetAnalyzers 8.0.0-preview1.23124.1 -> 8.0.0 And updates to satisfy CodeAnalysis updates: 1. Microsoft.Diagnostics.Runtime.GetInterface marked static. (no instance access) 2. move a string.indexof usage to string.contains for readability. * Removed updates to Microsoft.CodeAnalysis.CSharp.CodeStyle and Microsoft.CodeAnalysis.Netanalyzers versions. --------- Co-authored-by: Scott Wadsworth <bwadswor@microsoft.com>
1 parent a4f62f4 commit 437022b

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

src/Microsoft.Diagnostics.Runtime.Tests/Microsoft.Diagnostics.Runtime.Tests.csproj

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
44
<TargetFrameworks>net6.0</TargetFrameworks>
@@ -29,8 +29,8 @@
2929
</ItemGroup>
3030

3131
<ItemGroup>
32-
<PackageReference Include="AutoFixture" Version="4.15.0" />
33-
<PackageReference Include="AutoFixture.Xunit2" Version="4.15.0" />
32+
<PackageReference Include="AutoFixture" Version="4.18.1" />
33+
<PackageReference Include="AutoFixture.Xunit2" Version="4.18.1" />
3434
<PackageReference Include="NETStandard.Library" Version="2.0.3" />
3535
</ItemGroup>
3636

src/Microsoft.Diagnostics.Runtime/ClrType.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ public IEnumerable<ClrInterface> EnumerateInterfaces()
136136
}
137137
}
138138

139-
private ClrInterface? GetInterface(IAbstractMetadataReader import, int mdIFace)
139+
private static ClrInterface? GetInterface(IAbstractMetadataReader import, int mdIFace)
140140
{
141141
ClrInterface? result = null;
142142
string? name;

src/Microsoft.Diagnostics.Runtime/Extensions/SpanExtensions.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public static unsafe uint AsUInt32(this Span<byte> span, int offset = 0)
8585
#if !NETCOREAPP3_1
8686
public static bool Contains(this string source, string value, StringComparison comparisonType)
8787
{
88-
return source.IndexOf(value, comparisonType) != -1;
88+
return source.Contains(value, comparisonType);
8989
}
9090
#endif
9191
}

src/TestTasks/TestTasks.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
44
<TargetFrameworks>net6.0</TargetFrameworks>
55
</PropertyGroup>
66

77
<ItemGroup>
8-
<PackageReference Include="Microsoft.Build.Utilities.Core" Version="16.4.0" />
8+
<PackageReference Include="Microsoft.Build.Utilities.Core" Version="17.8.3" />
99
</ItemGroup>
1010

1111
<ItemGroup>

0 commit comments

Comments
 (0)