Skip to content

Commit

Permalink
chore: upgrade to .NET 8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kthompson committed May 31, 2024
1 parent df82a6a commit a888f7f
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 20 deletions.
6 changes: 3 additions & 3 deletions src/Directory.Build.props → Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<LangVersion>latest</LangVersion>
<Nullable>enable</Nullable>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<LangVersion>latest</LangVersion>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Nerdbank.GitVersioning" Condition="!Exists('packages.config')">
Expand Down
4 changes: 1 addition & 3 deletions Panther.sln
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tests", "tests", "{DE9991AB-E783-4C47-B224-BFE5493F2A9B}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{3A9F57E8-52F8-4A65-93B7-910383111244}"
ProjectSection(SolutionItems) = preProject
src\Directory.Build.props = src\Directory.Build.props
EndProjectSection
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Panther", "src\Panther\Panther.csproj", "{7122216E-DCED-4E69-87A6-7AD3388E6552}"
EndProject
Expand All @@ -22,6 +19,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
pnc.sh = pnc.sh
global.json = global.json
CHANGELOG.md = CHANGELOG.md
Directory.Build.props = Directory.Build.props
EndProjectSection
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "_build", "build\_build.csproj", "{2C7EA852-0336-45D4-9AAA-D3A5D1F2F4AA}"
Expand Down
2 changes: 0 additions & 2 deletions build/_build.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,12 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<NoWarn>CS0649;CS0169</NoWarn>
<NukeRootDirectory>..</NukeRootDirectory>
<NukeScriptDirectory>..</NukeScriptDirectory>
<Nullable>disable</Nullable>
<NukeTelemetryVersion>1</NukeTelemetryVersion>
<RootNamespace>Panther.Build</RootNamespace>
<LangVersion>default</LangVersion>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion global.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"sdk": {
"version": "6.0.201",
"version": "8.0.0",
"rollForward": "latestMajor",
"allowPrerelease": false
}
Expand Down
4 changes: 0 additions & 4 deletions tests/Panther.TestStdLib/Panther.TestStdLib.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@

<PropertyGroup>
<RootNamespace>Panther</RootNamespace>
<TargetFramework>net6.0</TargetFramework>
<Nullable>enable</Nullable>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<LangVersion>default</LangVersion>
<IsPackable>false</IsPackable>
</PropertyGroup>

Expand Down
4 changes: 2 additions & 2 deletions tests/Panther.Tests/CodeAnalysis/EmitterTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,11 @@ private static void AssertCommandOutput(string testDirectory, string assemblyLoc
runtimeConfig,
@"{
""runtimeOptions"": {
""tfm"": ""net6.0"",
""tfm"": ""net8.0"",
""rollForward"": ""LatestMinor"",
""framework"": {
""name"": ""Microsoft.NETCore.App"",
""version"": ""6.0.0""
""version"": ""8.0.0""
}
}
}"
Expand Down
5 changes: 0 additions & 5 deletions tests/Panther.Tests/Panther.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@

<PropertyGroup>
<IsPackable>false</IsPackable>

<TargetFramework>net6.0</TargetFramework>
<Nullable>enable</Nullable>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<LangVersion>latest</LangVersion>
</PropertyGroup>

<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
Expand Down

0 comments on commit a888f7f

Please sign in to comment.