Skip to content

Commit 13f8e67

Browse files
committed
Update to .NET 8
1 parent bde32bb commit 13f8e67

File tree

9 files changed

+29
-10
lines changed

9 files changed

+29
-10
lines changed

.github/workflows/CI.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ jobs:
1919
submodules: true
2020
fetch-depth: 0
2121

22-
- name: Install .NET 7.0
22+
- name: Install .NET 8.0
2323
uses: actions/setup-dotnet@v3
2424
with:
25-
dotnet-version: '7.0.x'
25+
dotnet-version: '8.0.x'
2626

2727
- name: Build, Test, Pack, Publish
2828
shell: bash

src/LibObjectFile.CodeGen/LibObjectFile.CodeGen.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFramework>net7.0</TargetFramework>
3+
<TargetFramework>net8.0</TargetFramework>
44
<OutputType>Exe</OutputType>
55
<IsPackable>false</IsPackable>
66
</PropertyGroup>

src/LibObjectFile.Tests/LibObjectFile.Tests.csproj

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

33
<PropertyGroup>
4-
<TargetFramework>net7.0</TargetFramework>
4+
<TargetFramework>net8.0</TargetFramework>
55
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
66
<IsPackable>false</IsPackable>
77
</PropertyGroup>
@@ -37,9 +37,9 @@
3737
</ItemGroup>
3838

3939
<ItemGroup>
40-
<PackageReference Include="nunit" Version="3.13.3" />
40+
<PackageReference Include="nunit" Version="4.0.1" />
4141
<PackageReference Include="NUnit3TestAdapter" Version="4.5.0" />
42-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.7.2" />
42+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
4343
</ItemGroup>
4444

4545
<ItemGroup>

src/LibObjectFile.Tests/Usings.cs

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// Copyright (c) Alexandre Mutel. All rights reserved.
2+
// This file is licensed under the BSD-Clause 2 license.
3+
// See the license.txt file in the project root for more information.
4+
5+
global using NUnit.Framework;
6+
global using Assert = NUnit.Framework.Legacy.ClassicAssert;
7+
global using CollectionAssert = NUnit.Framework.Legacy.CollectionAssert;
8+
global using StringAssert = NUnit.Framework.Legacy.StringAssert;
9+
global using DirectoryAssert = NUnit.Framework.Legacy.DirectoryAssert;
10+
global using FileAssert = NUnit.Framework.Legacy.FileAssert;

src/LibObjectFile.sln

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
1313
ProjectSection(SolutionItems) = preProject
1414
..\.gitignore = ..\.gitignore
1515
..\changelog.md = ..\changelog.md
16-
Directory.Build.props = Directory.Build.props
1716
..\.github\workflows\ci.yml = ..\.github\workflows\ci.yml
17+
Directory.Build.props = Directory.Build.props
1818
dotnet-releaser.toml = dotnet-releaser.toml
19+
global.json = global.json
1920
..\license.txt = ..\license.txt
2021
..\readme.md = ..\readme.md
2122
EndProjectSection

src/LibObjectFile.sln.DotSettings

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ See the license.txt file in the project root for more information.</s:String>
66
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/Abbreviations/=DIE/@EntryIndexedValue">DIE</s:String>
77
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/Abbreviations/=GNU/@EntryIndexedValue">GNU</s:String>
88
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/Abbreviations/=LEB/@EntryIndexedValue">LEB</s:String>
9+
<s:Boolean x:Key="/Default/Environment/SettingsMigration/IsMigratorApplied/=JetBrains_002EReSharper_002EFeature_002EServices_002ECodeCleanup_002EFileHeader_002EFileHeaderSettingsMigrate/@EntryIndexedValue">True</s:Boolean>
910
<s:Boolean x:Key="/Default/UserDictionary/Words/=Alexandre/@EntryIndexedValue">True</s:Boolean>
1011
<s:Boolean x:Key="/Default/UserDictionary/Words/=Disasm/@EntryIndexedValue">True</s:Boolean>
1112
<s:Boolean x:Key="/Default/UserDictionary/Words/=endian/@EntryIndexedValue">True</s:Boolean>

src/LibObjectFile/LibObjectFile.csproj

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

33
<PropertyGroup>
4-
<TargetFrameworks>net7.0</TargetFrameworks>
4+
<TargetFrameworks>net8.0</TargetFrameworks>
55
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
66
</PropertyGroup>
77

@@ -35,6 +35,6 @@
3535
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
3636
</PackageReference>
3737
<!--Add support for sourcelink-->
38-
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.*" PrivateAssets="All" />
38+
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All" />
3939
</ItemGroup>
4040
</Project>

src/global.json

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"sdk": {
3+
"version": "8.0.100",
4+
"rollForward": "latestMinor",
5+
"allowPrerelease": false
6+
}
7+
}

src/objdasm/objdasm.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net7.0</TargetFramework>
5+
<TargetFramework>net8.0</TargetFramework>
66
<RootNamespace>LibObjectFile.Disasm</RootNamespace>
77
<IsPackable>false</IsPackable>
88
</PropertyGroup>

0 commit comments

Comments
 (0)