mirror of
https://github.com/Z3Prover/z3
synced 2026-02-14 04:41:48 +00:00
Remove RuntimeIdentifier to fix assembly loading on macOS
Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com>
This commit is contained in:
parent
7e452d9379
commit
6bb039045e
1 changed files with 4 additions and 4 deletions
8
.github/workflows/nightly-validation.yml
vendored
8
.github/workflows/nightly-validation.yml
vendored
|
|
@ -166,7 +166,8 @@ jobs:
|
|||
dotnet new console
|
||||
dotnet add package Microsoft.Z3 --source ../nuget-packages --prerelease
|
||||
# Configure project to properly load native dependencies on macOS x64
|
||||
# Use full csproj rewrite to avoid sed escaping issues and ensure correct configuration
|
||||
# Use AnyCPU without RuntimeIdentifier to avoid architecture mismatch
|
||||
# The .NET runtime will automatically select the correct native library from runtimes/osx-x64/native/
|
||||
cat > test-nuget.csproj << 'CSPROJ'
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
|
|
@ -174,7 +175,6 @@ jobs:
|
|||
<TargetFramework>net8.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
<RuntimeIdentifier>osx-x64</RuntimeIdentifier>
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
|
|
@ -238,7 +238,8 @@ jobs:
|
|||
dotnet new console
|
||||
dotnet add package Microsoft.Z3 --source ../nuget-packages --prerelease
|
||||
# Configure project to properly load native dependencies on macOS ARM64
|
||||
# Use full csproj rewrite to avoid sed escaping issues and ensure correct configuration
|
||||
# Use AnyCPU without RuntimeIdentifier to avoid architecture mismatch
|
||||
# The .NET runtime will automatically select the correct native library from runtimes/osx-arm64/native/
|
||||
cat > test-nuget.csproj << 'CSPROJ'
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
|
|
@ -246,7 +247,6 @@ jobs:
|
|||
<TargetFramework>net8.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
<RuntimeIdentifier>osx-arm64</RuntimeIdentifier>
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue