From a2f443d3950bd1101ff32e65b0b5d4923e49e513 Mon Sep 17 00:00:00 2001 From: Kyriakos Sidiropoulos Date: Wed, 30 Oct 2024 17:41:32 +0100 Subject: [PATCH] feat (Laerdal.Dfu.csproj): add dummy-support for net8.0 --- Laerdal.Dfu/Laerdal.Dfu.csproj | 17 +++++++-- Laerdal.Dfu/Laerdal.Dfu.csproj.DotSettings | 1 + Laerdal.Dfu/Platforms.NetX/DfuInstallation.cs | 37 +++++++++++++++++++ Laerdal.Scripts/Laerdal.Builder.targets | 4 +- 4 files changed, 54 insertions(+), 5 deletions(-) create mode 100644 Laerdal.Dfu/Platforms.NetX/DfuInstallation.cs diff --git a/Laerdal.Dfu/Laerdal.Dfu.csproj b/Laerdal.Dfu/Laerdal.Dfu.csproj index 400b43c..3d504b9 100644 --- a/Laerdal.Dfu/Laerdal.Dfu.csproj +++ b/Laerdal.Dfu/Laerdal.Dfu.csproj @@ -12,8 +12,7 @@ - true - + $(TargetFrameworks)net8.0; $(TargetFrameworks)net8.0-ios; $(TargetFrameworks)net8.0-android @@ -26,6 +25,7 @@ true true true + true true @@ -38,11 +38,22 @@ 21.0 - 17.2 + 17.5 14.2 14.2 + + + + + + + + + + + true true diff --git a/Laerdal.Dfu/Laerdal.Dfu.csproj.DotSettings b/Laerdal.Dfu/Laerdal.Dfu.csproj.DotSettings index 877f041..06347ba 100644 --- a/Laerdal.Dfu/Laerdal.Dfu.csproj.DotSettings +++ b/Laerdal.Dfu/Laerdal.Dfu.csproj.DotSettings @@ -1,5 +1,6 @@  True + True True True True \ No newline at end of file diff --git a/Laerdal.Dfu/Platforms.NetX/DfuInstallation.cs b/Laerdal.Dfu/Platforms.NetX/DfuInstallation.cs new file mode 100644 index 0000000..63f107e --- /dev/null +++ b/Laerdal.Dfu/Platforms.NetX/DfuInstallation.cs @@ -0,0 +1,37 @@ +using System; +using System.Globalization; +using System.Linq; + +namespace Laerdal.Dfu +{ + public partial class DfuInstallation + { + public DfuInstallation(string deviceId, string fileUrl) : base(deviceId, fileUrl) + { + } + + public DfuInstallation() : base() + { + } + + public override void Start() + { + } + + public override void Pause() + { + } + + public override void Resume() + { + } + + public override void Abort() + { + } + + protected override void Dispose(bool disposing) + { + } + } +} \ No newline at end of file diff --git a/Laerdal.Scripts/Laerdal.Builder.targets b/Laerdal.Scripts/Laerdal.Builder.targets index cbe4294..f897acf 100644 --- a/Laerdal.Scripts/Laerdal.Builder.targets +++ b/Laerdal.Scripts/Laerdal.Builder.targets @@ -7,12 +7,12 @@ - + - +