Skip to content

Commit

Permalink
Include .NET 8 in builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Deadpikle committed Oct 4, 2023
1 parent 08e3f83 commit 8d2be27
Show file tree
Hide file tree
Showing 9 changed files with 66 additions and 16 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/publish-nuget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,15 @@ jobs:
# - name: Add MSBuild to PATH
# uses: microsoft/[email protected]

- name: Setup .NET 3.1, 5.0, 6.0, 7.0 for tests
- name: Setup .NET 3.1, 5.0, 6.0, 7.0, 8.0 for tests
uses: actions/[email protected]
with:
dotnet-version: |
3.1.x
5.0.x
6.0.x
7.0.x
8.0.x
- name: Run NetSparkle.Tests in .NET 3.1
run: dotnet test -f netcoreapp3.1 ${{ github.workspace }}/src/NetSparkle.Tests/NetSparkle.Tests.csproj
Expand All @@ -52,6 +53,12 @@ jobs:
- name: Run NetSparkle.Tests.AppCastGenerator in .NET 7
run: dotnet test -f net7.0 ${{ github.workspace }}/src/NetSparkle.Tests.AppCastGenerator/NetSparkle.Tests.AppCastGenerator.csproj

- name: Run NetSparkle.Tests in .NET 8
run: dotnet test -f net8.0 ${{ github.workspace }}/src/NetSparkle.Tests/NetSparkle.Tests.csproj

- name: Run NetSparkle.Tests.AppCastGenerator in .NET 8
run: dotnet test -f net8.0 ${{ github.workspace }}/src/NetSparkle.Tests.AppCastGenerator/NetSparkle.Tests.AppCastGenerator.csproj

publish:
name: Build and publish all packages to NuGet
runs-on: windows-latest
Expand Down Expand Up @@ -80,6 +87,7 @@ jobs:
5.0.x
6.0.x
7.0.x
8.0.x
- name: Clean things to be safe
run: |
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net7.0;net6;net5</TargetFrameworks>
<TargetFrameworks>net8.0;net7.0;net6;net5</TargetFrameworks>

<IsPackable>false</IsPackable>
</PropertyGroup>
Expand Down
10 changes: 8 additions & 2 deletions src/NetSparkle.Tests/NetSparkle.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<ProjectGuid>{E50AC3A5-6C63-40D7-A4C4-9B359EFD5707}</ProjectGuid>
<RootNamespace>NetSparkleUnitTests</RootNamespace>
<AssemblyName>NetSparkleUnitTests</AssemblyName>
<TargetFrameworks>net7.0;net6;net5;net452</TargetFrameworks>
<TargetFrameworks>net8.0;net7.0;net6;net5;net452</TargetFrameworks>
<ProjectTypeGuids>{3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
<ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\$(VisualStudioVersion)\UITestExtensionPackages</ReferencePath>
Expand Down Expand Up @@ -44,12 +44,18 @@
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net6|AnyCPU'">
<DefineConstants>DEBUG;TRACE;NETCORE;NET6</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net7/0|AnyCPU'">
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net7.0|AnyCPU'">
<DefineConstants>TRACE;NETCORE;NET7</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net7.0|AnyCPU'">
<DefineConstants>DEBUG;TRACE;NETCORE;NET7</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net8.0|AnyCPU'">
<DefineConstants>TRACE;NETCORE;NET7</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net8.0|AnyCPU'">
<DefineConstants>DEBUG;TRACE;NETCORE;NET7</DefineConstants>
</PropertyGroup>
<Import Project="$(VSToolsPath)\TeamTest\Microsoft.TestTools.targets" Condition="Exists('$(VSToolsPath)\TeamTest\Microsoft.TestTools.targets')" />
<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.5.0" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<OutputType>Exe</OutputType>
<RootNamespace>NetSparkleUpdater.AppCastGenerator</RootNamespace>
<AssemblyName>NetSparkleUpdater.Tools.AppCastGenerator</AssemblyName>
<TargetFrameworks>net7.0;net6;net5</TargetFrameworks>
<TargetFrameworks>net8.0;net7.0;net6;net5</TargetFrameworks>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<PublishUrl>publish\</PublishUrl>
<Install>true</Install>
Expand Down Expand Up @@ -48,10 +48,10 @@
</PropertyGroup>
<PropertyGroup>
<PostBuildEvent />
<AssemblyVersion>2.3.0.0</AssemblyVersion>
<FileVersion>2.3.0.0</FileVersion>
<AssemblyVersion>2.4.0.0</AssemblyVersion>
<FileVersion>2.4.0.0</FileVersion>
<PackageId>NetSparkleUpdater.Tools.AppCastGenerator</PackageId>
<Version>2.3.0</Version>
<Version>2.4.0</Version>
<Authors>Deadpikle</Authors>
<PackageLicenseFile>LICENSE.md</PackageLicenseFile>
<PackageProjectUrl>https://github.com/NetSparkleUpdater/NetSparkle</PackageProjectUrl>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@
<OutputType>Exe</OutputType>
<RootNamespace>NetSparkleUpdater.DSAHelper</RootNamespace>
<AssemblyName>NetSparkleUpdater.Tools.DSAHelper</AssemblyName>
<TargetFrameworks>net7.0;net6;net5</TargetFrameworks>
<TargetFrameworks>net8.0;net7.0;net6;net5</TargetFrameworks>
<AssemblyTitle>NetSparkle</AssemblyTitle>
<Product>NetSparkleUpdater.Tools.DSAHelper</Product>
<Description>Command line tool 'netsparkle-dsa' to generate and use DSA signatures. WARNING: DSA signatures are insecure. If possible, please use NetSparkleUpdater.Tools.AppCastGenerator instead to use ed25519 signatures. Use in conjunction with the NetSparkleUpdater library.</Description>
<Copyright>Copyright © Dirk Eisenberg 2010, Deadpikle 2020-2023</Copyright>
<AssemblyVersion>2.2.1.0</AssemblyVersion>
<FileVersion>2.2.1.0</FileVersion>
<AssemblyVersion>2.2.2.0</AssemblyVersion>
<FileVersion>2.2.2.0</FileVersion>
<OutputPath>..\..\bin\$(Configuration)\NetSparkle.Tools.DSAHelper\</OutputPath>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Version>2.2.1</Version>
<Version>2.2.2</Version>
<Authors>Deadpikle</Authors>
<Company>Deadpikle</Company>
<PackAsTool>true</PackAsTool>
Expand Down
18 changes: 17 additions & 1 deletion src/NetSparkle.UI.Avalonia/NetSparkle.UI.Avalonia.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net7.0;net6;net5;netcoreapp3.1;netstandard2.0</TargetFrameworks>
<TargetFrameworks>net8.0;net7.0;net6;net5;netcoreapp3.1;netstandard2.0</TargetFrameworks>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageId>NetSparkleUpdater.UI.Avalonia</PackageId>
<Version>2.3.0-preview20231004001</Version>
Expand Down Expand Up @@ -48,6 +48,22 @@
<DefineConstants>TRACE</DefineConstants>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net7.0|AnyCPU'">
<DefineConstants>DEBUG;TRACE</DefineConstants>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net7.0|AnyCPU'">
<DefineConstants>TRACE</DefineConstants>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net8.0|AnyCPU'">
<DefineConstants>DEBUG;TRACE</DefineConstants>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net8.0|AnyCPU'">
<DefineConstants>TRACE</DefineConstants>
</PropertyGroup>

<ItemGroup>
<None Remove="CheckingForUpdatesWindow.xaml" />
<None Remove="DownloadProgressWindow.xaml" />
Expand Down
5 changes: 4 additions & 1 deletion src/NetSparkle.UI.WPF/NetSparkle.UI.WPF.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<PropertyGroup>
<ProjectGuid>{6915843C-7947-4268-B569-6F5684651DF4}</ProjectGuid>
<UseWPF>true</UseWPF>
<TargetFrameworks>net7.0-windows;net5-windows;net6-windows;netcoreapp3.1;net452</TargetFrameworks>
<TargetFrameworks>net8.0-windows;net7.0-windows;net5-windows;net6-windows;netcoreapp3.1;net452</TargetFrameworks>
<AssemblyTitle>NetSparkleUpdater.UI.WPF</AssemblyTitle>
<Product>NetSparkleUpdater.UI.WPF</Product>
<Copyright>Copyright © 2023</Copyright>
Expand Down Expand Up @@ -61,6 +61,9 @@
<ItemGroup Condition="'$(TargetFramework)' == 'net7.0-windows'">
<PackageReference Include="System.Drawing.Common" Version="7.0.0" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'net8.0-windows'">
<PackageReference Include="System.Drawing.Common" Version="8.0.0-rc.1.23419.5" />
</ItemGroup>
<ItemGroup>
<None Include="..\..\LICENSE.md">
<Pack>True</Pack>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<RootNamespace>NetSparkleUpdater.UI.WinForms</RootNamespace>
<AssemblyName>NetSparkleUpdater.UI.WinForms</AssemblyName>
<UseWindowsForms>true</UseWindowsForms>
<TargetFrameworks>net7.0-windows;net5-windows;net6-windows;netcoreapp3.1</TargetFrameworks>
<TargetFrameworks>net8.0-windows;net7.0-windows;net5-windows;net6-windows;netcoreapp3.1</TargetFrameworks>
<AssemblyTitle>NetSparkle.NetFramework.WinForms</AssemblyTitle>
<Product>NetSparkleUpdater.UI.WinForms.NetCore</Product>
<Copyright>Copyright © 2023</Copyright>
Expand Down Expand Up @@ -94,6 +94,9 @@
<ItemGroup Condition="'$(TargetFramework)' == 'net7.0-windows'">
<PackageReference Include="System.Drawing.Common" Version="7.0.0"/>
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'net8.0-windows'">
<PackageReference Include="System.Drawing.Common" Version="8.0.0-rc.1.23419.5" />
</ItemGroup>
<ItemGroup>
<Folder Include="Properties\" />
</ItemGroup>
Expand Down
16 changes: 15 additions & 1 deletion src/NetSparkle/NetSparkle.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net7.0;net6;net5;netstandard2.0;netcoreapp3.1;net452</TargetFrameworks>
<TargetFrameworks>net8.0;net7.0;net6;net5;netstandard2.0;netcoreapp3.1;net452</TargetFrameworks>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageId>NetSparkleUpdater.SparkleUpdater</PackageId>
<Version>2.3.0-preview20231004001</Version>
Expand Down Expand Up @@ -84,6 +84,16 @@
<DocumentationFile>..\bin\Debug\NetSparkle\NetSparkle.xml</DocumentationFile>
<DefineConstants>DEBUG;TRACE;NETCORE;NET7</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net8.0|AnyCPU'">
<OutputPath>..\bin\Release\NetSparkle\</OutputPath>
<DocumentationFile>..\bin\Release\NetSparkle\NetSparkle.xml</DocumentationFile>
<DefineConstants>TRACE;NETCORE;NET7</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net8.0|AnyCPU'">
<OutputPath>..\bin\Debug\NetSparkle\</OutputPath>
<DocumentationFile>..\bin\Debug\NetSparkle\NetSparkle.xml</DocumentationFile>
<DefineConstants>DEBUG;TRACE;NETCORE;NET7</DefineConstants>
</PropertyGroup>
<!-- .NET 4.5.2 references, compilation flags and build options -->
<ItemGroup Condition=" '$(TargetFramework)' == 'net452' ">
<Reference Include="System" />
Expand Down Expand Up @@ -120,6 +130,10 @@
<PackageReference Include="System.Text.Json" Version="7.0.3" />
<!--<PackageReference Include="BouncyCastle.Cryptography" Version="2.0.0" /> TODO: 3.0 -->
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'net8.0'">
<PackageReference Include="System.Text.Json" Version="8.0.0-rc.1.23419.4" />
<!--<PackageReference Include="BouncyCastle.Cryptography" Version="2.0.0" /> TODO: 3.0 -->
</ItemGroup>
<ItemGroup>
<PackageReference Include="Portable.BouncyCastle" Version="1.9.0" />
</ItemGroup>
Expand Down

0 comments on commit 8d2be27

Please sign in to comment.