diff --git a/src/api/dotnet/CMakeLists.txt b/src/api/dotnet/CMakeLists.txt index c309f4027..3d3864139 100644 --- a/src/api/dotnet/CMakeLists.txt +++ b/src/api/dotnet/CMakeLists.txt @@ -147,8 +147,13 @@ endforeach() set(Z3_DOTNET_NUPKG_VERSION "${VER_MAJOR}.${VER_MINOR}.${VER_BUILD}") if(TARGET_ARCHITECTURE STREQUAL "i686") set(Z3_DOTNET_PLATFORM "x86") + set(Z3_DOTNET_WIN_RID "win-x86") +elseif(TARGET_ARCHITECTURE STREQUAL "arm64") + set(Z3_DOTNET_PLATFORM "AnyCPU") + set(Z3_DOTNET_WIN_RID "win-arm64") else() set(Z3_DOTNET_PLATFORM "AnyCPU") + set(Z3_DOTNET_WIN_RID "win-x64") endif() # TODO conditional for signing. we can then enable the ``Release_delaysign`` configuration diff --git a/src/api/dotnet/Microsoft.Z3.csproj.in b/src/api/dotnet/Microsoft.Z3.csproj.in index ec136809d..cf5aacf46 100644 --- a/src/api/dotnet/Microsoft.Z3.csproj.in +++ b/src/api/dotnet/Microsoft.Z3.csproj.in @@ -84,10 +84,10 @@ ${Z3_DOTNET_COMPILE_ITEMS} - + - - runtimes\win-x64\native + + runtimes\${Z3_DOTNET_WIN_RID}\native runtimes\linux-x64\native @@ -99,7 +99,7 @@ ${Z3_DOTNET_COMPILE_ITEMS} - + runtimes\win-x86\native diff --git a/src/api/dotnet/Microsoft.Z3.props b/src/api/dotnet/Microsoft.Z3.props index a5db71359..4625fdd18 100644 --- a/src/api/dotnet/Microsoft.Z3.props +++ b/src/api/dotnet/Microsoft.Z3.props @@ -9,7 +9,8 @@ $(MSBuildThisFileDirectory)..\ - $(Z3_PACKAGE_PATH)runtimes\win-x64\native\libz3.dll + $(Z3_PACKAGE_PATH)runtimes\win-arm64\native\libz3.dll + $(Z3_PACKAGE_PATH)runtimes\win-x64\native\libz3.dll $(Z3_PACKAGE_PATH)runtimes\win-x86\native\libz3.dll $(Z3_PACKAGE_PATH)runtimes\linux-x64\native\libz3.so diff --git a/src/api/dotnet/Microsoft.Z3.targets b/src/api/dotnet/Microsoft.Z3.targets index 38e56b350..a1436242c 100644 --- a/src/api/dotnet/Microsoft.Z3.targets +++ b/src/api/dotnet/Microsoft.Z3.targets @@ -1,7 +1,7 @@ - + %(RecursiveDir)%(FileName)%(Extension) PreserveNewest