mirror of
https://github.com/Z3Prover/z3
synced 2025-06-21 05:13:39 +00:00
Fixes for .NET Core build
This commit is contained in:
parent
026309a325
commit
c81ee05098
3 changed files with 17 additions and 5 deletions
|
@ -21,11 +21,13 @@ using System;
|
||||||
|
|
||||||
namespace Microsoft.Z3
|
namespace Microsoft.Z3
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The exception base class for error reporting from Z3
|
/// The exception base class for error reporting from Z3
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
#if !DOTNET_CORE
|
||||||
[Serializable]
|
[Serializable]
|
||||||
public class Z3Exception : Exception
|
#endif
|
||||||
|
public class Z3Exception : Exception
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Constructor.
|
/// Constructor.
|
||||||
|
|
9
src/api/dotnet/core/README.txt
Normal file
9
src/api/dotnet/core/README.txt
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
Z3 API for .NET Core
|
||||||
|
|
||||||
|
Z3's .NET API uses Code Contracts, which are not included in .NET Core. The
|
||||||
|
enclosed file called DummyContracts.cs provides stubs for the Code Contracts
|
||||||
|
functions, so that the API will compile, but not perform any contract
|
||||||
|
checking. To build this using .NET core, run (in this directory):
|
||||||
|
|
||||||
|
dotnet restore
|
||||||
|
dotnet build project.json
|
|
@ -4,7 +4,8 @@
|
||||||
"debugType": "portable",
|
"debugType": "portable",
|
||||||
"emitEntryPoint": false,
|
"emitEntryPoint": false,
|
||||||
"outputName": "Microsoft.Z3",
|
"outputName": "Microsoft.Z3",
|
||||||
"compile": [ "../*.cs", "*.cs" ]
|
"compile": [ "../*.cs", "*.cs" ],
|
||||||
|
"define": ["DOTNET_CORE"]
|
||||||
},
|
},
|
||||||
"dependencies": { },
|
"dependencies": { },
|
||||||
"frameworks": {
|
"frameworks": {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue