Browse Source

Fix build errors by updating to dotnet 10

Marcin Ziąbek 1 month ago
parent
commit
5600d62a4f

+ 1 - 1
Source/QuestPDF.Companion.TestRunner/QuestPDF.Companion.TestRunner.csproj

@@ -2,7 +2,7 @@
 
 
     <PropertyGroup>
     <PropertyGroup>
         <OutputType>Exe</OutputType>
         <OutputType>Exe</OutputType>
-        <TargetFramework>net8.0</TargetFramework>
+        <TargetFramework>net10.0</TargetFramework>
         <ImplicitUsings>enable</ImplicitUsings>
         <ImplicitUsings>enable</ImplicitUsings>
         <Nullable>enable</Nullable>
         <Nullable>enable</Nullable>
         <SatelliteResourceLanguages>en</SatelliteResourceLanguages>
         <SatelliteResourceLanguages>en</SatelliteResourceLanguages>

+ 1 - 1
Source/QuestPDF.DocumentationExamples/QuestPDF.DocumentationExamples.csproj

@@ -1,7 +1,7 @@
 <Project Sdk="Microsoft.NET.Sdk">
 <Project Sdk="Microsoft.NET.Sdk">
 
 
     <PropertyGroup>
     <PropertyGroup>
-        <TargetFramework>net8.0</TargetFramework>
+        <TargetFramework>net10.0</TargetFramework>
         <ImplicitUsings>enable</ImplicitUsings>
         <ImplicitUsings>enable</ImplicitUsings>
         <Nullable>enable</Nullable>
         <Nullable>enable</Nullable>
         <SatelliteResourceLanguages>en</SatelliteResourceLanguages>
         <SatelliteResourceLanguages>en</SatelliteResourceLanguages>

+ 2 - 2
Source/QuestPDF.InteropGenerators.Tests/Run.cs

@@ -18,7 +18,7 @@ internal static class Program
     private static readonly string ProjectName  = "QuestPDF"; // target project in the solution
     private static readonly string ProjectName  = "QuestPDF"; // target project in the solution
     private static readonly string OutputDir    = Path.GetFullPath("./_generated");
     private static readonly string OutputDir    = Path.GetFullPath("./_generated");
     private const string Configuration = "Debug"; // or "Release"
     private const string Configuration = "Debug"; // or "Release"
-    // Optional: if you need a specific TFM, set: ["TargetFramework"] = "net8.0"
+    // Optional: if you need a specific TFM, set: ["TargetFramework"] = "net10.0"
 
 
     public static async Task Main()
     public static async Task Main()
     {
     {
@@ -28,7 +28,7 @@ internal static class Program
         using var workspace = MSBuildWorkspace.Create(new Dictionary<string, string>
         using var workspace = MSBuildWorkspace.Create(new Dictionary<string, string>
         {
         {
             ["Configuration"] = Configuration,
             ["Configuration"] = Configuration,
-            ["TargetFramework"] = "net8.0"
+            ["TargetFramework"] = "net10.0"
         });
         });
 
 
         workspace.WorkspaceFailed += (s, e) => Console.WriteLine($"[WorkspaceFailed] {e.Diagnostic.Kind}: {e.Diagnostic.Message}");
         workspace.WorkspaceFailed += (s, e) => Console.WriteLine($"[WorkspaceFailed] {e.Diagnostic.Kind}: {e.Diagnostic.Message}");

+ 1 - 1
Source/QuestPDF.LayoutTests/QuestPDF.LayoutTests.csproj

@@ -1,7 +1,7 @@
 <Project Sdk="Microsoft.NET.Sdk">
 <Project Sdk="Microsoft.NET.Sdk">
 
 
     <PropertyGroup>
     <PropertyGroup>
-        <TargetFramework>net8.0</TargetFramework>
+        <TargetFramework>net10.0</TargetFramework>
         <ImplicitUsings>enable</ImplicitUsings>
         <ImplicitUsings>enable</ImplicitUsings>
         <Nullable>enable</Nullable>
         <Nullable>enable</Nullable>
         <SatelliteResourceLanguages>en</SatelliteResourceLanguages>
         <SatelliteResourceLanguages>en</SatelliteResourceLanguages>

+ 1 - 1
Source/QuestPDF.ReportSample/QuestPDF.ReportSample.csproj

@@ -1,7 +1,7 @@
 <Project Sdk="Microsoft.NET.Sdk">
 <Project Sdk="Microsoft.NET.Sdk">
 
 
     <PropertyGroup>
     <PropertyGroup>
-        <TargetFramework>net8.0</TargetFramework>
+        <TargetFramework>net10.0</TargetFramework>
         <SatelliteResourceLanguages>en</SatelliteResourceLanguages>
         <SatelliteResourceLanguages>en</SatelliteResourceLanguages>
         <IsPackable>false</IsPackable>
         <IsPackable>false</IsPackable>
         <RootNamespace>QuestPDF.ReportSample</RootNamespace>
         <RootNamespace>QuestPDF.ReportSample</RootNamespace>

+ 1 - 1
Source/QuestPDF.UnitTests/QuestPDF.UnitTests.csproj

@@ -1,7 +1,7 @@
 <Project Sdk="Microsoft.NET.Sdk">
 <Project Sdk="Microsoft.NET.Sdk">
 
 
     <PropertyGroup>
     <PropertyGroup>
-        <TargetFramework>net8.0</TargetFramework>
+        <TargetFramework>net10.0</TargetFramework>
         <SatelliteResourceLanguages>en</SatelliteResourceLanguages>
         <SatelliteResourceLanguages>en</SatelliteResourceLanguages>
         <IsPackable>false</IsPackable>
         <IsPackable>false</IsPackable>
         <IsTestProject>true</IsTestProject>
         <IsTestProject>true</IsTestProject>

+ 1 - 1
Source/QuestPDF.VisualTests/QuestPDF.VisualTests.csproj

@@ -1,7 +1,7 @@
 <Project Sdk="Microsoft.NET.Sdk">
 <Project Sdk="Microsoft.NET.Sdk">
 
 
     <PropertyGroup>
     <PropertyGroup>
-        <TargetFramework>net8.0</TargetFramework>
+        <TargetFramework>net10.0</TargetFramework>
         <ImplicitUsings>enable</ImplicitUsings>
         <ImplicitUsings>enable</ImplicitUsings>
         <Nullable>enable</Nullable>
         <Nullable>enable</Nullable>
         <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
         <AllowUnsafeBlocks>true</AllowUnsafeBlocks>

+ 1 - 1
Source/QuestPDF.ZUGFeRD/QuestPDF.ZUGFeRD.csproj

@@ -1,7 +1,7 @@
 <Project Sdk="Microsoft.NET.Sdk">
 <Project Sdk="Microsoft.NET.Sdk">
 
 
     <PropertyGroup>
     <PropertyGroup>
-        <TargetFramework>net8.0</TargetFramework>
+        <TargetFramework>net10.0</TargetFramework>
         <ImplicitUsings>enable</ImplicitUsings>
         <ImplicitUsings>enable</ImplicitUsings>
         <Nullable>enable</Nullable>
         <Nullable>enable</Nullable>
         <SatelliteResourceLanguages>en</SatelliteResourceLanguages>
         <SatelliteResourceLanguages>en</SatelliteResourceLanguages>