Skip to content

Commit

Permalink
Updated build pipeline for dotnet 8 for all projects
Browse files Browse the repository at this point in the history
  • Loading branch information
DJGosnell committed Jan 29, 2025
1 parent 9200dfc commit 8fc057b
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion CreateBindingsPackage.bat
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
git clean -fxd
dotnet build src/PDFiumCoreBindingsGenerator/PDFiumCoreBindingsGenerator.csproj -c Release
dotnet ./src/PDFiumCoreBindingsGenerator/bin/Release/net6.0/PDFiumCoreBindingsGenerator.dll latest true
dotnet ./src/PDFiumCoreBindingsGenerator/bin/Release/net8.0/PDFiumCoreBindingsGenerator.dll latest true
dotnet pack ./src/PDFiumCore/PDFiumCore.csproj -c Release -o ./artifacts/
dotnet test ./src/PDFiumCore.Tests/PDFiumCore.Tests.csproj
pause
2 changes: 1 addition & 1 deletion src/PDFiumCore.Tests/PDFiumCore.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>
<IsPackable>false</IsPackable>
<RestoreSources>
$(RestoreSources);
Expand Down
4 changes: 2 additions & 2 deletions src/PDFiumCore/PDFiumCore.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
<PackageReference Include="bblanchon.PDFium.Linux" Version="$(Version)" PrivateAssets="analyzers" />
<PackageReference Include="bblanchon.PDFium.macOS" Version="$(Version)" PrivateAssets="analyzers" />
<PackageReference Include="bblanchon.PDFium.Win32" Version="$(Version)" PrivateAssets="analyzers" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All" />
<PackageReference Include="System.Runtime.CompilerServices.Unsafe" Version="6.0.0" Condition="'$(TargetFramework)' == 'netstandard2.1'" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All" />
<PackageReference Include="System.Runtime.CompilerServices.Unsafe" Version="6.1.0" Condition="'$(TargetFramework)' == 'netstandard2.1'" />
</ItemGroup>
<ItemGroup>
<Compile Include="..\CppSharp\src\Runtime\MarshalUtil.cs" Link="CppSharp\MarshalUtil.cs" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<OutputType>Exe</OutputType>
<PlatformTarget>x64</PlatformTarget>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="CppSharp" Version="1.0.0">
<PackageReference Include="CppSharp" Version="1.1.5.3168">
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="Newtonsoft.Json" version="13.0.1" />
<PackageReference Include="SharpZipLib" Version="1.3.3" />
<PackageReference Include="Newtonsoft.Json" version="13.0.3" />
<PackageReference Include="SharpZipLib" Version="1.4.2" />
</ItemGroup>
</Project>
2 changes: 1 addition & 1 deletion src/PDFiumCoreDemo/PDFiumCoreDemo.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<RestoreSources>
$(RestoreSources);
$(ProjectDir)..\..\artifacts\;
Expand Down

0 comments on commit 8fc057b

Please sign in to comment.