Skip to content

Commit

Permalink
✨ Upgrade to .NET 8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
pleonex committed Dec 14, 2023
1 parent 0bdc375 commit 167c02c
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 15 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Feel free to ask any question in the
## Build

The project requires
[.NET 6.0 SDK](https://dotnet.microsoft.com/en-us/download/dotnet/6.0).
[.NET 8.0 SDK](https://dotnet.microsoft.com/en-us/download/dotnet/8.0).

To build, test and generate artifacts run:

Expand Down
4 changes: 2 additions & 2 deletions build.csx
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ public sealed class BuildLifetime : FrostingLifetime<PleOpsBuildContext>
context.WarningsAsErrors = false;
context.DotNetContext.CoverageTarget = 0;
context.DotNetContext.ApplicationProjects.Add(new ProjectPublicationInfo(
"./src/PlayMobic.Tool", new[] { "win-x64", "linux-x64", "osx-x64" }, "net6.0"));
"./src/PlayMobic.Tool", new[] { "win-x64", "linux-x64", "osx-x64" }, "net8.0"));
context.DotNetContext.ApplicationProjects.Add(new ProjectPublicationInfo(
"./src/PlayMobic.UI", new[] { "win-x64", "linux-x64", "osx-x64" }, "net6.0"));
"./src/PlayMobic.UI", new[] { "win-x64", "linux-x64", "osx-x64" }, "net8.0"));

// Update build parameters from command line arguments.
context.ReadArguments();
Expand Down
3 changes: 0 additions & 3 deletions src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@
<Deterministic>true</Deterministic>
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" PrivateAssets="All"/>
</ItemGroup>

<!-- Code analyzers -->
<PropertyGroup>
Expand Down
1 change: 0 additions & 1 deletion src/Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
<PackageVersion Include="NUnit.Analyzers" Version="3.10.0" />
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
<PackageVersion Include="coverlet.collector" Version="6.0.0" />
<PackageVersion Include="Microsoft.SourceLink.GitHub" Version="8.0.0" />
<PackageVersion Include="SonarAnalyzer.CSharp" Version="9.15.0.81779" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<OutputType>Exe</OutputType>

<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>

<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
Expand Down
2 changes: 1 addition & 1 deletion src/PlayMobic.Tests/PlayMobic.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>

<GenerateDocumentationFile>false</GenerateDocumentationFile>
<ImplicitUsings>enable</ImplicitUsings>
Expand Down
8 changes: 5 additions & 3 deletions src/PlayMobic.Tests/Video/YuvBlockTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,11 @@ public void ConstructorSetProperties()
var macroblock = new YuvBlock(expectedY, expectedU, expectedV);

Assert.Multiple(() => {
Assert.That(macroblock.Luma, Is.EqualTo(expectedY));
Assert.That(macroblock.ChromaU, Is.EqualTo(expectedU));
Assert.That(macroblock.ChromaV, Is.EqualTo(expectedV));
#pragma warning disable NUnit2010 // Bug in NUnit with Is.EqualTo
Assert.That(macroblock.Luma.Equals(expectedY), Is.True);
Assert.That(macroblock.ChromaU.Equals(expectedU), Is.True);
Assert.That(macroblock.ChromaV.Equals(expectedV), Is.True);
#pragma warning restore NUnit2010
});
}
}
2 changes: 1 addition & 1 deletion src/PlayMobic.Tool/PlayMobic.Tool.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<OutputType>Exe</OutputType>

<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<SelfContained>false</SelfContained>

<GenerateDocumentationFile>false</GenerateDocumentationFile>
Expand Down
2 changes: 1 addition & 1 deletion src/PlayMobic.UI/PlayMobic.UI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<OutputType>WinExe</OutputType>
<ApplicationIcon>Assets/avalonia-logo.ico</ApplicationIcon>

<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<SelfContained>false</SelfContained>
<BuiltInComInteropSupport>true</BuiltInComInteropSupport>
<ApplicationManifest>app.manifest</ApplicationManifest>
Expand Down
2 changes: 1 addition & 1 deletion src/PlayMobic/PlayMobic.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<Description>Codec for MODS video format.</Description>
<IsPackable>true</IsPackable>

<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>

<!-- TODO: document API -->
<GenerateDocumentationFile>false</GenerateDocumentationFile>
Expand Down

0 comments on commit 167c02c

Please sign in to comment.