Skip to content

Commit 1e64337

Browse files
Build for TargetFramework 8.0 (#822)
* Build for TargetFramework 7.0 * Install .NET7 for Build.yml and External-Storage-Tests.yml * Fix packaging error for duplicated content files. error NU5118: Warning As Error: File '\dotnet\src\dotnetcore\Reor\bin\Release\net7.0\Reor.deps.json' is not added because the package already contains file 'contentFiles\any\any\Reor.deps.json * Continue building Azure Functions only for .NET 6.0. * Retarget Net7 to Net8. * Update requirements. * Include NET8 SDK on github workflow. * Fix error SYSLIB0051 Exception.Exception(SerializationInfo, StreamingContext) is obsolete * Fix error SYSLIB0051 Exception.Exception(SerializationInfo, StreamingContext) is obsolete * Update dotnet version for the Fortify scan. * Prepare project for multi target build. * Fix preview version of dotnet 8 in fortify scan. Try to fix error NETSDK1045: The current .NET SDK does not support targeting .NET 8.0. Either target .NET 7.0 or lower, or use a version of the .NET SDK that supports .NET 8.0 when packaging code with msbuild 17.6.3.22601 * Change msbuild build tool by dotnet msbuild. * Upgrade msbuild version. * Specify a preview version in global.json to allow building with 8.0 preview irrespective of the checkbox "Use previews of the .NET Core SDK" on visual studio. * Upgrade msbuild for fortify-net-framework.yml * Add Jayrock for net8.0 * Add jayrock lib for net8.0 * Temporary include jayrock library for .NET8 package. * Fix Startup warning: The WebRootPath was not found. * Set the .NET version to 8 RC1 for packages * Fix version of RC1. * Fix version. Remove Warning Unexpected input(s) 'include-prerelease' * Add the target framework 'net8.0' to projects that haven't been configured with it yet. * Add NET 8 support for Azure functions * Remove the target framework 6.0 from AzureFunctionsTest.csproj since it doesn't support building for multiple targets * Remove hardcoded GeneXus.Deploy.AzureFunctions.Handlers.runtimeconfig.json with aspnet core 6.0 and take it from output directory. * Remove the target framework 6.0 from AzureFunctionsTest.csproj since it doesn't support building for multiple targets * Upgrade PackageHealthTest to test for net8. --------- Co-authored-by: sjuarezgx <sjuarez@genexus.com>
1 parent 4563df6 commit 1e64337

File tree

79 files changed

+226
-165
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+226
-165
lines changed

.github/workflows/Build.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@ jobs:
4545
dotnet-version: '6.0.x'
4646
include-prerelease: false
4747

48+
- name: Install .NET 8
49+
uses: actions/setup-dotnet@v3
50+
with:
51+
dotnet-version: '8.0.100-rc.1.23455.8'
52+
4853
- name: Calculate environment variables
4954
id: buildVariables
5055
run: |

.github/workflows/External-Storage-Tests.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@ jobs:
3232
uses: actions/setup-dotnet@v2
3333
with:
3434
dotnet-version: '6.0.x'
35+
36+
- name: Install .NET 8
37+
uses: actions/setup-dotnet@v3
38+
with:
39+
dotnet-version: '8.x'
40+
include-prerelease: true
3541

3642
- name: Restore packages
3743
run: dotnet restore $Env:SolutionFile

.github/workflows/fortify-net-framework.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,22 @@ jobs:
2727
with:
2828
repository: ''
2929

30+
- name: Setup MSBuild
31+
uses: microsoft/setup-msbuild@v1.1
32+
with:
33+
vs-prerelease: true
34+
3035
# Java 8 required by ScanCentral Client and FoD Uploader(Univeral CI Tool)
3136
- name: Setup Java
3237
uses: actions/setup-java@v1
3338
with:
3439
java-version: 1.8
35-
36-
- name: Setup MSBuild
37-
uses: microsoft/setup-msbuild@v1
40+
41+
- name: Install .NET 8
42+
uses: actions/setup-dotnet@v3
3843
with:
39-
vs-version: 10.0
40-
44+
dotnet-version: '8.0.100-preview.3.23178.7'
45+
4146
- name: Create temporal solution
4247
run: |
4348
$fortifysolution = "FortifySolution"

.github/workflows/fortify.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,22 @@ jobs:
2727
with:
2828
repository: ''
2929

30+
- name: Setup MSBuild
31+
uses: microsoft/setup-msbuild@v1.1
32+
with:
33+
vs-prerelease: true
34+
3035
# Java 8 required by ScanCentral Client and FoD Uploader(Univeral CI Tool)
3136
- name: Setup Java
3237
uses: actions/setup-java@v1
3338
with:
3439
java-version: 1.8
35-
36-
- name: Setup MSBuild
37-
uses: microsoft/setup-msbuild@v1
40+
41+
- name: Install .NET 8
42+
uses: actions/setup-dotnet@v3
3843
with:
39-
vs-version: 10.0
40-
44+
dotnet-version: '8.0.100-preview.3.23178.7'
45+
4146
- name: Create temporal solution
4247
run: |
4348
$fortifysolution = "FortifySolution"

.github/workflows/veracode.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@ jobs:
5050
dotnet-version: '6.0.x'
5151
include-prerelease: false
5252

53+
- name: Install .NET 8
54+
uses: actions/setup-dotnet@v3
55+
with:
56+
dotnet-version: '8.x'
57+
include-prerelease: true
5358

5459
- name: Build
5560
run: |

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ This repository contains projects for .NET and .NET Framework. It is organized a
6666
# How to build
6767

6868
## Requirements
69-
- Visual Studio 2022
70-
- .NET 6
69+
- Visual Studio 2022 (17.6.1 if using .NET 8 up to preview 3 or 17.7 if using .NET 8 last preview).
70+
- .NET 6 & .NET 8
7171
- .NET Framework 4.7 DevPack
7272

7373
# Instructions

dotnet/src/dotnetcommon/DynService.Core/DynService.Core.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFrameworks>net462;net6.0</TargetFrameworks>
3+
<TargetFrameworks>net462;net6.0;net8.0</TargetFrameworks>
44
<RootNamespace>GeneXus.Data.NTier</RootNamespace>
55
<AssemblyName>GeneXus.Data.DynService.Core</AssemblyName>
66
<NoWarn>CA1812</NoWarn>

dotnet/src/dotnetcommon/DynService.Dynamo/DynService.DynamoDB.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFrameworks>net462;net6.0</TargetFrameworks>
3+
<TargetFrameworks>net462;net6.0;net8.0</TargetFrameworks>
44
<RootNamespace>GeneXus.Data.NTier</RootNamespace>
55
<AssemblyName>GeneXus.Data.DynService.DynamoDB</AssemblyName>
66
<SignAssembly>false</SignAssembly>

dotnet/src/dotnetcommon/GxCryptography/EncryptionProvider.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System;
1+
using System;
22
using System.Security.Cryptography.X509Certificates;
33
using System.Security.Cryptography;
44
using System.IO;
@@ -58,7 +58,9 @@ public NativeSymmetricEncryption(string algorithm, int keySize)
5858
_symAlg = Aes.Create();
5959
break;
6060
default:
61+
#pragma warning disable SYSLIB0045 // Type or member is obsolete
6162
_symAlg = SymmetricAlgorithm.Create(algorithm);
63+
#pragma warning restore SYSLIB0045 // Type or member is obsolete
6264
break;
6365
}
6466
if (_symAlg != null)

dotnet/src/dotnetcommon/GxCryptography/GxCryptography.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFrameworks>net462;net6.0</TargetFrameworks>
3+
<TargetFrameworks>net462;net6.0;net8.0</TargetFrameworks>
44
<RootNamespace>GxCryptography</RootNamespace>
5-
<NoWarn>618;1607;1698;SYSLIB0021;SYSLIB0027;SYSLIB0028;SYSLIB0023</NoWarn>
5+
<NoWarn>618;1607;1698;SYSLIB0021;SYSLIB0027;SYSLIB0028;SYSLIB0023;SYSLIB0022</NoWarn>
66
<AssemblyName>GxCryptography</AssemblyName>
77
<PackageTags>Data Access</PackageTags>
88
<PackageId>GeneXus.Cryptography</PackageId>

0 commit comments

Comments
 (0)