Skip to content

Commit

Permalink
Merge pull request #2677 from FirelyTeam/feature/update-to-net80
Browse files Browse the repository at this point in the history
Update solution to .NET 8
  • Loading branch information
mmsmits authored Jan 22, 2024
2 parents 9e4dd42 + de937ac commit 11a97cc
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 19 deletions.
4 changes: 2 additions & 2 deletions build/build-variables.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Variables used during builds.

variables:
NET_CORE_SDK: 7.0.x
NET_CORE_SDK: 8.0.x
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
TEST_TARGETFRAMEWORK: net6.0
TEST_TARGETFRAMEWORK: net8.0
buildConfiguration: Release
2 changes: 1 addition & 1 deletion build/templates/test-job-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ steps:
displayName: 'Use .NET Core sdk $(NET_CORE_SDK)'
inputs:
packageType: runtime
version: 6.0.x
version: $(NET_CORE_SDK)
- task: DownloadPipelineArtifact@2
inputs:
displayName: Download Build artifacts
Expand Down
2 changes: 1 addition & 1 deletion src/Benchmarks/Benchmarks.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>
<AssemblyName>Benchmarks</AssemblyName>
<RootNamespace>Firely.Sdk.Benchmarks</RootNamespace>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
using System.IO;
using System.Linq;
using System.Threading;
using ssac = System.Security.AccessControl;
using Ssac = System.Security.AccessControl;
using T = System.Threading.Tasks;

namespace Hl7.Fhir.Specification.Tests
Expand Down Expand Up @@ -346,7 +346,7 @@ public void TestAccessPermissions()

// Revoke folder read permissions for the current user
string userName = System.Security.Principal.WindowsIdentity.GetCurrent().Name;
var rule = new ssac.FileSystemAccessRule(userName, ssac.FileSystemRights.Read, ssac.AccessControlType.Deny);
var rule = new Ssac.FileSystemAccessRule(userName, Ssac.FileSystemRights.Read, Ssac.AccessControlType.Deny);
ds.AddAccessRule(rule);
Debug.Print($"Removing read permissions from folder: '{subPath2}' ...");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
using System.IO;
using System.Linq;
using System.Threading;
using ssac = System.Security.AccessControl;
using Ssac = System.Security.AccessControl;
using T = System.Threading.Tasks;

namespace Hl7.Fhir.Specification.Tests
Expand Down Expand Up @@ -344,7 +344,7 @@ public void TestAccessPermissions()

// Revoke folder read permissions for the current user
string userName = System.Security.Principal.WindowsIdentity.GetCurrent().Name;
var rule = new ssac.FileSystemAccessRule(userName, ssac.FileSystemRights.Read, ssac.AccessControlType.Deny);
var rule = new Ssac.FileSystemAccessRule(userName, Ssac.FileSystemRights.Read, Ssac.AccessControlType.Deny);
ds.AddAccessRule(rule);
Debug.Print($"Removing read permissions from folder: '{subPath2}' ...");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
using System.IO;
using System.Linq;
using System.Xml.Linq;
using boolean = System.Boolean;
using Boolean = System.Boolean;
using DecimalType = Hl7.Fhir.Model.FhirDecimal; // System.Decimal;
using Model = Hl7.Fhir.Model;
using P = Hl7.Fhir.ElementModel.Types;
Expand Down Expand Up @@ -64,7 +64,7 @@ private static bool compare(XElement expected, ITypedElement actual)
}

// @SuppressWarnings("deprecation")
private void testBoolean(Model.Resource resource, Model.Base focus, String focusType, String expression, boolean value)
private void testBoolean(Model.Resource resource, Model.Base focus, String focusType, String expression, Boolean value)
{
var input = focus.ToTypedElement();
var container = resource?.ToTypedElement();
Expand Down
10 changes: 3 additions & 7 deletions src/firely-net-sdk-tests.props
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<TargetFrameworks>net6.0</TargetFrameworks>
<LangVersion>11.0</LangVersion>
<TargetFrameworks>net8.0</TargetFrameworks>
<LangVersion>12.0</LangVersion>
<EnableUnsafeBinaryFormatterSerialization>true</EnableUnsafeBinaryFormatterSerialization>
</PropertyGroup>

<PropertyGroup>
<ContainsTests>true</ContainsTests>
</PropertyGroup>

<!-- General compiler settings -->
<PropertyGroup>
<LangVersion>11.0</LangVersion>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|netcoreapp2.1|AnyCPU'">
<DefineConstants>DEBUG;TRACE</DefineConstants>
</PropertyGroup>
Expand Down
4 changes: 2 additions & 2 deletions src/firely-net-sdk.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

<PropertyGroup>
<TargetFrameworks>net6.0;netstandard2.0</TargetFrameworks>
<TargetFrameworks>net8.0;netstandard2.0</TargetFrameworks>
</PropertyGroup>

<!-- Solution-wide properties for NuGet packaging -->
Expand Down Expand Up @@ -39,7 +39,7 @@

<!-- Compiler settings -->
<PropertyGroup>
<LangVersion>11.0</LangVersion>
<LangVersion>12.0</LangVersion>
<GenerateDocumentationFile>True</GenerateDocumentationFile>
<Configurations>Debug;Release;FullDebug</Configurations>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
Expand Down

0 comments on commit 11a97cc

Please sign in to comment.