Skip to content

Commit e2d8b9b

Browse files
committed
Upgrade to .NET 8, build for ARM
1 parent 4eb6cee commit e2d8b9b

14 files changed

+137
-15
lines changed

.gitignore

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1-
bin/*
2-
obj/*
1+
bin/
2+
obj/
3+
.vs/
4+
publish/

Extensions.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ static class Extensions
1414
/// <returns>DateTime</returns>
1515
public static DateTime GetLinkerTimestampUtc(this Assembly assembly)
1616
{
17-
var location = assembly.Location;
18-
return GetLinkerTimestampUtcLocation(location);
17+
return GetLinkerTimestampUtcLocation(Environment.ProcessPath);
1918
}
2019

2120
/// <summary>

HexPrintFile.csproj

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,13 @@
11
<Project Sdk="Microsoft.NET.Sdk">
2-
32
<PropertyGroup>
43
<OutputType>Exe</OutputType>
5-
<TargetFramework>netcoreapp3.1</TargetFramework>
4+
<TargetFramework>net8.0</TargetFramework>
65
<GenerateDocumentationFile>true</GenerateDocumentationFile>
7-
86
<!-- Deterministic needs to be false for the build date functionality to work -->
97
<Deterministic>false</Deterministic>
10-
<AssemblyVersion>1.1.1</AssemblyVersion>
11-
8+
<AssemblyVersion>1.2.0</AssemblyVersion>
129
</PropertyGroup>
13-
1410
<ItemGroup>
1511
<PackageReference Include="McMaster.Extensions.CommandLineUtils" Version="3.0.0" />
1612
</ItemGroup>
17-
18-
</Project>
13+
</Project>

HexPrintFile.csproj.user

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<PropertyGroup>
4+
<_LastSelectedProfileId>C:\Repos\HexPrintFile\Properties\PublishProfiles\SelfContained_win-x64.pubxml</_LastSelectedProfileId>
5+
</PropertyGroup>
6+
</Project>

HexPrintFile.sln

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.5.002.0
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "HexPrintFile", "HexPrintFile.csproj", "{5595A06A-DCA0-4137-87CD-F78E4EA75498}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|Any CPU = Debug|Any CPU
11+
Release|Any CPU = Release|Any CPU
12+
EndGlobalSection
13+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14+
{5595A06A-DCA0-4137-87CD-F78E4EA75498}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{5595A06A-DCA0-4137-87CD-F78E4EA75498}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{5595A06A-DCA0-4137-87CD-F78E4EA75498}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{5595A06A-DCA0-4137-87CD-F78E4EA75498}.Release|Any CPU.Build.0 = Release|Any CPU
18+
EndGlobalSection
19+
GlobalSection(SolutionProperties) = preSolution
20+
HideSolutionNode = FALSE
21+
EndGlobalSection
22+
GlobalSection(ExtensibilityGlobals) = postSolution
23+
SolutionGuid = {42B8452C-6163-4F4C-B57B-ABC2F227C532}
24+
EndGlobalSection
25+
EndGlobal

Program.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,6 @@ private enum ReturnCode
4040
[Description("Read block size cannot be more than 64 bytes")]
4141
CHUNK_MORE_THAN_MAXIMUM = 11,
4242
}
43-
44-
// Read in 16 byte chunks
45-
private const int ChunkSize = 16;
4643

4744
private static readonly string[] ControlChars =
4845
{
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!--
3+
https://go.microsoft.com/fwlink/?LinkID=208121.
4+
-->
5+
<Project>
6+
<PropertyGroup>
7+
<Configuration>Release</Configuration>
8+
<Platform>Any CPU</Platform>
9+
<PublishDir>publish\linux-arm64\</PublishDir>
10+
<PublishProtocol>FileSystem</PublishProtocol>
11+
<_TargetId>Folder</_TargetId>
12+
<TargetFramework>net8.0</TargetFramework>
13+
<RuntimeIdentifier>linux-arm64</RuntimeIdentifier>
14+
<SelfContained>true</SelfContained>
15+
<PublishSingleFile>true</PublishSingleFile>
16+
<PublishTrimmed>false</PublishTrimmed>
17+
</PropertyGroup>
18+
</Project>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
2+
<PropertyGroup>
3+
<History>True|2025-01-05T02:25:58.9812476Z||;True|2025-01-05T02:13:51.9002923+00:00||;</History>
4+
<LastFailureDetails />
5+
</PropertyGroup>
6+
</Project>
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!--
3+
https://go.microsoft.com/fwlink/?LinkID=208121.
4+
-->
5+
<Project>
6+
<PropertyGroup>
7+
<Configuration>Release</Configuration>
8+
<Platform>Any CPU</Platform>
9+
<PublishDir>publish\linux-x64\</PublishDir>
10+
<PublishProtocol>FileSystem</PublishProtocol>
11+
<_TargetId>Folder</_TargetId>
12+
<TargetFramework>net8.0</TargetFramework>
13+
<RuntimeIdentifier>linux-x64</RuntimeIdentifier>
14+
<SelfContained>true</SelfContained>
15+
<PublishSingleFile>true</PublishSingleFile>
16+
<PublishTrimmed>false</PublishTrimmed>
17+
</PropertyGroup>
18+
</Project>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
2+
<PropertyGroup>
3+
<History>True|2025-01-05T02:26:05.1317394Z||;True|2025-01-05T02:13:55.4856065+00:00||;</History>
4+
<LastFailureDetails />
5+
</PropertyGroup>
6+
</Project>

0 commit comments

Comments
 (0)