3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-08 18:31:49 +00:00
This commit is contained in:
Nikolaj Bjorner 2016-11-02 14:15:05 +00:00
commit 46a4bc6030
3 changed files with 17 additions and 5 deletions

View file

@ -21,11 +21,13 @@ using System;
namespace Microsoft.Z3
{
/// <summary>
/// The exception base class for error reporting from Z3
/// </summary>
/// <summary>
/// The exception base class for error reporting from Z3
/// </summary>
#if !DOTNET_CORE
[Serializable]
public class Z3Exception : Exception
#endif
public class Z3Exception : Exception
{
/// <summary>
/// Constructor.

View 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

View file

@ -4,7 +4,8 @@
"debugType": "portable",
"emitEntryPoint": false,
"outputName": "Microsoft.Z3",
"compile": [ "../*.cs", "*.cs" ]
"compile": [ "../*.cs", "*.cs" ],
"define": ["DOTNET_CORE"]
},
"dependencies": { },
"frameworks": {