Skip to content

Commit 507a2e9

Browse files
committed
Update deps, slnx and central package management
1 parent 09365c1 commit 507a2e9

19 files changed

Lines changed: 60 additions & 102 deletions

src/Directory.Packages.props

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,18 @@
22
<PropertyGroup>
33
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
44
<CentralPackageTransitivePinningEnabled>false</CentralPackageTransitivePinningEnabled>
5+
<CentralPackageFloatingVersionsEnabled>true</CentralPackageFloatingVersionsEnabled>
56
</PropertyGroup>
67
<ItemGroup>
7-
<PackageVersion Include="MinVer" Version="6.0.0" />
8-
<PackageVersion Include="MSTest" Version="3.6.0" />
8+
<PackageVersion Include="JetBrains.Profiler.Api" Version="1.4.11" />
9+
<PackageVersion Include="MinVer" Version="7.0.0" />
10+
<PackageVersion Include="MSTest" Version="4.1.0" />
911
<PackageVersion Include="SuperluminalPerf" Version="1.3.0" />
10-
<PackageVersion Include="System.Text.Encoding.CodePages" Version="8.0.0" />
11-
<PackageVersion Include="Verify.DiffPlex" Version="3.1.0" />
12-
<PackageVersion Include="Verify.MSTest" Version="26.6.0" />
13-
<PackageVersion Include="Microsoft.SourceLink.GitHub" Version="8.0.0" />
14-
<PackageVersion Include="CppAst.CodeGen" Version="0.20.0" />
12+
<PackageVersion Include="System.Text.Encoding.CodePages" Version="10.0.5" />
13+
<PackageVersion Include="Verify.DiffPlex" Version="3.1.2" />
14+
<PackageVersion Include="Verify.MSTest" Version="31.14.0" />
15+
<PackageVersion Include="Microsoft.SourceLink.GitHub" Version="10.0.201" />
16+
<PackageVersion Include="CppAst.CodeGen" Version="0.27.0" />
1517
<PackageVersion Include="Iced" Version="1.21.0" />
1618
<PackageVersion Include="Mono.Options" Version="6.12.0.148" />
1719
</ItemGroup>

src/LibObjectFile.Bench/LibObjectFile.Bench.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net8.0</TargetFramework>
5+
<TargetFramework>net10.0</TargetFramework>
66
<ImplicitUsings>enable</ImplicitUsings>
77
<Nullable>enable</Nullable>
88
<IsPackable>false</IsPackable>
99
</PropertyGroup>
1010

1111
<ItemGroup>
12+
<PackageReference Include="JetBrains.Profiler.Api" />
1213
<PackageReference Include="SuperluminalPerf" />
1314
</ItemGroup>
1415

src/LibObjectFile.Bench/Program.cs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
// See the license.txt file in the project root for more information.
44

55
using System.Diagnostics;
6+
using JetBrains.Profiler.Api;
67
using LibObjectFile.Elf;
78

89
namespace LibObjectFile.Bench;
@@ -11,6 +12,9 @@ internal class Program
1112
{
1213
static void Main(string[] args)
1314
{
15+
//Console.WriteLine($"Press enter to start benchmarking - pid: {Process.GetCurrentProcess().Id}");
16+
//Console.ReadLine();
17+
1418
Console.WriteLine("Loading files into memory");
1519
var clock = Stopwatch.StartNew();
1620
var streams = new List<MemoryStream>();
@@ -34,12 +38,14 @@ static void Main(string[] args)
3438

3539
clock.Stop();
3640
Console.WriteLine($"End reading in {clock.Elapsed.TotalMilliseconds}ms");
37-
Console.ReadLine();
38-
41+
//Console.ReadLine();
42+
//MeasureProfiler.StartCollectingData();
43+
//MeasureProfiler.StartCollectingData();
3944
Console.WriteLine("Processing");
4045
var memoryStream = new MemoryStream(biggestCapacity);
4146
clock.Restart();
4247
//SuperluminalPerf.Initialize();
48+
//MeasureProfiler.StartCollectingData("Loading");
4349
for (int i = 0; i < 10; i++)
4450
{
4551
//SuperluminalPerf.BeginEvent($"Round{i}");
@@ -52,6 +58,7 @@ static void Main(string[] args)
5258
}
5359
//SuperluminalPerf.EndEvent();
5460
}
61+
//MeasureProfiler.SaveData();
5562
clock.Stop();
5663
Console.WriteLine($"{clock.Elapsed.TotalMilliseconds}ms");
5764
}

src/LibObjectFile.CodeGen/LibObjectFile.CodeGen.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFramework>net8.0</TargetFramework>
3+
<TargetFramework>net10.0</TargetFramework>
44
<OutputType>Exe</OutputType>
55
<IsPackable>false</IsPackable>
66
<RuntimeIdentifier Condition="'$(RuntimeIdentifier)' == '' AND '$(PackAsTool)' != 'true'">$(NETCoreSdkRuntimeIdentifier)</RuntimeIdentifier>

src/LibObjectFile.Tests/Dwarf/DwarfTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ namespace LibObjectFile.Tests.Dwarf;
1414
[TestClass]
1515
public class DwarfTests : ElfTestBase
1616
{
17-
[DataTestMethod]
17+
[TestMethod]
1818
[DataRow(0UL)]
1919
[DataRow(1UL)]
2020
[DataRow(50UL)]
@@ -39,7 +39,7 @@ public void TestLEB128(ulong value)
3939
Assert.AreEqual(value, readbackValue);
4040
}
4141

42-
[DataTestMethod]
42+
[TestMethod]
4343
[DataRow(0L)]
4444
[DataRow(1L)]
4545
[DataRow(50L)]

src/LibObjectFile.Tests/Elf/ElfSimpleTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ namespace LibObjectFile.Tests.Elf;
1717
[TestClass]
1818
public class ElfSimpleTests : ElfTestBase
1919
{
20-
[DataTestMethod]
21-
[DynamicData(nameof(GetLinuxBins), DynamicDataSourceType.Method)]
20+
[TestMethod]
21+
[DynamicData(nameof(GetLinuxBins))]
2222
public void TestLinuxFile(string file)
2323
{
2424
if (string.IsNullOrEmpty(file))
@@ -526,7 +526,7 @@ public void TestManySections()
526526
}
527527
}
528528

529-
[DataTestMethod]
529+
[TestMethod]
530530
[DataRow("helloworld")]
531531
[DataRow("libstdc++.so")]
532532
[DataRow("helloworld_debug")]

src/LibObjectFile.Tests/IO/TestBatchDataReaderWriter.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ namespace LibObjectFile.Tests.IO;
1616
[TestClass]
1717
public class TestBatchDataReaderWriter
1818
{
19-
[DataTestMethod]
19+
[TestMethod]
2020
[DataRow(0)]
2121
[DataRow(1)]
2222
[DataRow(100)]
@@ -39,7 +39,7 @@ public void TestRead(int count)
3939
Assert.AreEqual(count, i);
4040
}
4141

42-
[DataTestMethod]
42+
[TestMethod]
4343
[DataRow(0)]
4444
[DataRow(1)]
4545
[DataRow(100)]

src/LibObjectFile.Tests/LibObjectFile.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFramework>net10.0</TargetFramework>
55
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
66
<IsPackable>false</IsPackable>
77
<EnableMSTestRunner>true</EnableMSTestRunner>

src/LibObjectFile.Tests/PE/PEReaderTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ namespace LibObjectFile.Tests.PE;
1818
[UsesVerify]
1919
public partial class PEReaderTests
2020
{
21-
[DataTestMethod]
21+
[TestMethod]
2222
[DataRow("NativeConsoleWin64.exe")]
2323
[DataRow("NativeConsole2Win64.exe")]
2424
[DataRow("NativeLibraryWin64.dll")]
@@ -163,8 +163,8 @@ public void TestCreatePE()
163163
}
164164
}
165165

166-
[DataTestMethod]
167-
[DynamicData(nameof(GetWindowsExeAndDlls), DynamicDataSourceType.Method)]
166+
[TestMethod]
167+
[DynamicData(nameof(GetWindowsExeAndDlls))]
168168
public async Task TestWindows(string sourceFile)
169169
{
170170
if (!OperatingSystem.IsWindows())

src/LibObjectFile.sln

Lines changed: 0 additions & 68 deletions
This file was deleted.

0 commit comments

Comments
 (0)