Skip to content

Commit

Permalink
Move to .net 9
Browse files Browse the repository at this point in the history
  • Loading branch information
sailro committed Nov 14, 2024
1 parent ebaa0b2 commit 292e793
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion Dexer.Debug/Dexer.Debug.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<OutputType>Exe</OutputType>
<IsPackable>false</IsPackable>
</PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion Dexer.Tests/Dexer.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<IsPackable>false</IsPackable>
</PropertyGroup>

Expand Down
10 changes: 5 additions & 5 deletions Dexer.Tests/InstructionTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,15 @@ public void TestUpdateInstructionOffsets()
}
}

bool IsPartial = false;
foreach (OpCodes opcode in Enum.GetValues(typeof(OpCodes)))
var isPartial = false;
foreach (var opcode in Enum.GetValues<OpCodes>())
if (!coverage.ContainsKey(opcode))
{
IsPartial = true;
isPartial = true;
TestContext.WriteLine("OpCode {0} was not covered", opcode);
}

if (IsPartial)
TestContext.WriteLine("Some OpCode(s) were not covered ({0:P} coverage)", (double)coverage.Count / Enum.GetNames(typeof(OpCodes)).Length);
if (isPartial)
TestContext.WriteLine("Some OpCode(s) were not covered ({0:P} coverage)", (double)coverage.Count / Enum.GetNames<OpCodes>().Length);
}
}
2 changes: 1 addition & 1 deletion Dexer/IO/DexReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ private List<List<Annotation>> ReadAnnotationSetRefList(BinaryReader reader, uin
for (uint i = 0; i < size; i++)
{
var offset = reader.ReadUInt32();
result.Add(offset == 0 ? new List<Annotation>(0) : ReadAnnotationSet(reader, offset));
result.Add(offset == 0 ? [] : ReadAnnotationSet(reader, offset));
}
});
return result;
Expand Down
10 changes: 5 additions & 5 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
</PropertyGroup>
<ItemGroup>
<GlobalPackageReference Include="Microsoft.CodeAnalysis.CSharp.CodeStyle" Version="4.8.0" />
<GlobalPackageReference Include="Microsoft.VisualStudio.Threading.Analyzers" Version="17.8.14" />
<GlobalPackageReference Include="Microsoft.CodeAnalysis.CSharp.CodeStyle" Version="4.11.0" />
<GlobalPackageReference Include="Microsoft.VisualStudio.Threading.Analyzers" Version="17.12.19" />
</ItemGroup>
<ItemGroup>
<PackageVersion Include="Microsoft.SourceLink.GitHub" Version="8.0.0" />
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
<PackageVersion Include="MSTest.TestAdapter" Version="3.1.1" />
<PackageVersion Include="MSTest.TestFramework" Version="3.1.1" />
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
<PackageVersion Include="MSTest.TestAdapter" Version="3.6.3" />
<PackageVersion Include="MSTest.TestFramework" Version="3.6.3" />
<PackageVersion Include="Microsoft.NETFramework.ReferenceAssemblies" PrivateAssets="All" Version="1.0.3" />
</ItemGroup>
</Project>

0 comments on commit 292e793

Please sign in to comment.