mirror of
https://github.com/Z3Prover/z3
synced 2026-08-15 02:06:34 +00:00
`Microsoft.Z3.dll` was being emitted with PE `Machine=0x8664` (AMD64) despite being pure IL, because the Windows x64 CI environment (`vcvarsall.bat x64`) injects `Platform=x64` into MSBuild, which sets the COFF machine type when `PlatformTarget` is not explicitly specified. This causes `FS0193` / architecture mismatch errors on any arm64 .NET host (macOS Apple Silicon, Linux aarch64, Windows on ARM). ## Changes - **`scripts/mk_util.py`** — Add `<PlatformTarget>AnyCPU</PlatformTarget>` to the in-memory `.csproj` template generated by the Python build system (`mk_win_dist.py`, `mk_unix_dist.py`) - **`src/api/dotnet/Microsoft.Z3.csproj.in`** — Add `<PlatformTarget>AnyCPU</PlatformTarget>` to the CMake build system template Both paths now produce `Machine=0x014C` (i386/AnyCPU) regardless of host or CI environment, matching the assembly's actual nature (`ILONLY=True`, `32BIT_REQUIRED=False`). The native side already ships six RIDs; no changes needed there. --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| Properties | ||
| AlgebraicNum.cs | ||
| ApplyResult.cs | ||
| ArithExpr.cs | ||
| ArithSort.cs | ||
| ArrayExpr.cs | ||
| ArraySort.cs | ||
| AST.cs | ||
| ASTMap.cs | ||
| ASTVector.cs | ||
| BitVecExpr.cs | ||
| BitVecNum.cs | ||
| BitVecSort.cs | ||
| BoolExpr.cs | ||
| BoolSort.cs | ||
| CharSort.cs | ||
| cmake_install_gac.cmake.in | ||
| cmake_uninstall_gac.cmake.in | ||
| CMakeLists.txt | ||
| Constructor.cs | ||
| ConstructorList.cs | ||
| Context.cs | ||
| DatatypeExpr.cs | ||
| DatatypeSort.cs | ||
| EnumSort.cs | ||
| Expr.cs | ||
| FiniteDomainExpr.cs | ||
| FiniteDomainNum.cs | ||
| FiniteDomainSort.cs | ||
| FiniteSetSort.cs | ||
| Fixedpoint.cs | ||
| FPExpr.cs | ||
| FPNum.cs | ||
| FPRMExpr.cs | ||
| FPRMNum.cs | ||
| FPRMSort.cs | ||
| FPSort.cs | ||
| FuncDecl.cs | ||
| FuncInterp.cs | ||
| Global.cs | ||
| Goal.cs | ||
| IntExpr.cs | ||
| IntNum.cs | ||
| IntSort.cs | ||
| IntSymbol.cs | ||
| Lambda.cs | ||
| ListSort.cs | ||
| Log.cs | ||
| Microsoft.Z3.csproj.in | ||
| Microsoft.Z3.props | ||
| Microsoft.Z3.Sharp.pc.in | ||
| Microsoft.Z3.snk | ||
| Microsoft.Z3.targets | ||
| Microsoft.Z3.targets.in | ||
| Model.cs | ||
| NativeContext.cs | ||
| NativeFuncInterp.cs | ||
| NativeModel.cs | ||
| NativeSolver.cs | ||
| OnClause.cs | ||
| Optimize.cs | ||
| ParamDescrs.cs | ||
| Params.cs | ||
| Pattern.cs | ||
| Probe.cs | ||
| Quantifier.cs | ||
| RatNum.cs | ||
| RCFNum.cs | ||
| README.md | ||
| RealExpr.cs | ||
| RealSort.cs | ||
| ReExpr.cs | ||
| RelationSort.cs | ||
| ReSort.cs | ||
| SeqExpr.cs | ||
| SeqSort.cs | ||
| SetSort.cs | ||
| Simplifiers.cs | ||
| Solver.cs | ||
| Sort.cs | ||
| Statistics.cs | ||
| Status.cs | ||
| StringSymbol.cs | ||
| Symbol.cs | ||
| Tactic.cs | ||
| TupleSort.cs | ||
| UninterpretedSort.cs | ||
| UserPropagator.cs | ||
| Version.cs | ||
| Z3Exception.cs | ||
| Z3Object.cs | ||
Z3 Nuget Package
For more information see the Z3 github page