From 4f7663c4fe0a1c3f66394026b288d3a31af8d71d Mon Sep 17 00:00:00 2001 From: Kyriakos Sidiropoulos Date: Mon, 20 Jan 2025 13:52:19 +0100 Subject: [PATCH 1/2] doc (README.md): enrich with a "known issues" section --- README.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/README.md b/README.md index f7aaa42..1e40eb9 100644 --- a/README.md +++ b/README.md @@ -22,3 +22,23 @@ git clone https://github.com/Laerdal/Laerdal.Dfu.git ```bash dotnet msbuild Laerdal.Scripts/Laerdal.Builder.targets /m:1 /p:Laerdal_Version=9.0.x.0 /p:Laerdal_Github_Access_Token= ``` + +## Known issues + +- Trying to use the iOS/Android flavours of this library in desktop-simulators for iOS/Android will probably result in compilation errors. If you want to perform general purpose + UI-testing on your desktop using such simulators you need to tweak your nuget references to use the `-force-dud` nuget of `Laerdal.Dfu` like so: + +```xml + + $(NoWarn);NU1605 + +``` + +Alternatively you can achieve the same result by overriding the reference to `Laerdal.Dfu.Bindings.iOS` like so (note: this solution is only applicable for iOS and will work only +for iOS sdk 18.x or below!): + +```xml + + $(NoWarn);NU1605 + +``` From 90df899391cb9f7f0b460c3fb03947b2fd8038ea Mon Sep 17 00:00:00 2001 From: Kyriakos Sidiropoulos Date: Mon, 20 Jan 2025 14:15:19 +0100 Subject: [PATCH 2/2] feat (Laerdal.Dfu.csproj): add side-support for generating a net8-only dud-build of the Laerdal.Dfu for use in desktop-simulators of iOS/Android this pure-net8 nuget is more future-proof that the one we have via Laerdal.Dfu.Bindings.iOS because we don't need to update it for each new version of the iOS sdk (18, 19, ...) --- Laerdal.Dfu/Laerdal.Dfu.csproj | 13 ++++++++++--- Laerdal.Dfu/Laerdal.targets | 3 ++- Laerdal.Scripts/Laerdal.Builder.targets | 10 +++++++++- 3 files changed, 21 insertions(+), 5 deletions(-) diff --git a/Laerdal.Dfu/Laerdal.Dfu.csproj b/Laerdal.Dfu/Laerdal.Dfu.csproj index 267b0d1..b2e745f 100644 --- a/Laerdal.Dfu/Laerdal.Dfu.csproj +++ b/Laerdal.Dfu/Laerdal.Dfu.csproj @@ -12,10 +12,17 @@ + + + + + -force-dud + $(TargetFrameworks)net8.0; - $(TargetFrameworks)net8.0-ios; - $(TargetFrameworks)net8.0-android; - $(TargetFrameworks)net8.0-maccatalyst + $(TargetFrameworks)net8.0-ios; + $(TargetFrameworks)net8.0-android; + $(TargetFrameworks)net8.0-maccatalyst + diff --git a/Laerdal.Dfu/Laerdal.targets b/Laerdal.Dfu/Laerdal.targets index 7178570..86b57a9 100644 --- a/Laerdal.Dfu/Laerdal.targets +++ b/Laerdal.Dfu/Laerdal.targets @@ -121,7 +121,8 @@ $(Laerdal_Version_Full) - $(Laerdal_Version_Full) + + $(Laerdal_Version_Full)$(PackageVersionPostfix) $(Laerdal_Version_Full) $(Laerdal_Version_Full) diff --git a/Laerdal.Scripts/Laerdal.Builder.targets b/Laerdal.Scripts/Laerdal.Builder.targets index bdc452d..813306b 100644 --- a/Laerdal.Scripts/Laerdal.Builder.targets +++ b/Laerdal.Scripts/Laerdal.Builder.targets @@ -24,6 +24,11 @@ $(BUILD_ARTIFACTSTAGINGDIRECTORY) $([System.IO.Path]::Combine($(MSBuildThisFileDirectory), `..`, `Artifacts/`)) + $(MSBuildThisFileDirectory) + + $([System.IO.Path]::Combine( '$(Laerdal_Script_FolderPath)', '..' )) + $([System.IO.Path]::GetFullPath( '$(Laerdal_RootDirectory_Folderpath)' )) + $(BUILD_SOURCEBRANCH) $(BUILD_REPOSITORY_NAME) https://dep-tracker.laerdal.com/api/api/v1/bom @@ -85,7 +90,10 @@ - + + + +