From 99cfdae6eda079b21265d8bd0c27e7cfaf9c4717 Mon Sep 17 00:00:00 2001 From: tiger tiger tiger Date: Mon, 6 Jul 2026 15:33:30 +0200 Subject: [PATCH] fix: version the native extract marker and chain download via DependsOnTargets The .extracted marker now includes the raylib package name, so bumping TargetRaylibTag re-extracts the new archive instead of silently keeping (and packing/copying) the previous version's files. _PrepareNativeLibrary and _StageWasmNative now depend directly on _DownloadAndExtractInternal instead of CallTarget-ing it; dependency targets run in the same project instance, so the resolved properties (RaylibPackageName etc.) propagate naturally. --- Raylib-cs/Raylib-cs.csproj | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Raylib-cs/Raylib-cs.csproj b/Raylib-cs/Raylib-cs.csproj index 7155e74..d9964e4 100644 --- a/Raylib-cs/Raylib-cs.csproj +++ b/Raylib-cs/Raylib-cs.csproj @@ -102,11 +102,10 @@ - + <_RaylibNativesDir>$([System.IO.Path]::GetFullPath('$(MSBuildProjectDirectory)/$(NativesRoot)')) - <_NativeCandidate Include="$(_RaylibNativesDir)$(RuntimeIdentifier)/**/$(LibPattern)"/> <_RaylibNativeLibraryItem Include="@(_NativeCandidate)"/> @@ -114,13 +113,12 @@ - <_WasmNativeSrc>$(NativesRoot)browser-wasm/$(RaylibPackageName)/lib/libraylib.web.a <_WasmNativeDst>$(MSBuildThisFileDirectory)obj/browser-wasm/raylib.a - @@ -136,7 +134,9 @@ <_WorkDir>$(NativesRoot)$(RuntimeIdentifier)/ <_ArchiveFile>$(_WorkDir)$(RaylibPackageName)$(ArchiveExt) - <_ExtractMarker>$(_WorkDir).extracted + + <_ExtractMarker>$(_WorkDir)$(RaylibPackageName).extracted