3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-22 16:45:31 +00:00

Fixes for .NET Core build

This commit is contained in:
Christoph M. Wintersteiger 2016-11-02 13:36:29 +00:00
parent 026309a325
commit c81ee05098
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": {