Skip to content

Commit

Permalink
CI: update dotnet example to coreclr 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
yatli committed Sep 12, 2018
1 parent 20c128d commit aae28bd
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contrib/ci/scripts/test_z3_examples_cmake.sh
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ if [ "X${DOTNET_BINDINGS}" = "X1" ]; then
# Build .NET example
# FIXME: Move compliation step into CMake target
mcs ${Z3_SRC_DIR}/examples/dotnet/Program.cs /target:exe /out:dotnet_test.exe /reference:Microsoft.Z3.dll /r:System.Numerics.dll
# Run .NET example
run_quiet run_non_native_binding mono ./dotnet_test.exe
# Build & Run .NET example
run_quiet run_non_native_binding dotnet run -p ${Z3_SRC_DIR}/examples/dotnet/dotnet.csproj
fi

if [ "X${JAVA_BINDINGS}" = "X1" ]; then
Expand Down
12 changes: 12 additions & 0 deletions examples/dotnet/dotnet.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Z3" Version="4.8.0" />
</ItemGroup>

</Project>

0 comments on commit aae28bd

Please sign in to comment.