Is it possible to install Z3 in Visual Studio with NuGet and use it with C++?

51 Views Asked by At

The title should be clear, but just for the records, I tried installing Z3 with NuGet, but the package doesn't have the include directory or the lib file, and of course it doesn't allow C++ or C compilation. Is it possible to do it, or should I just go the CMake way?

1

There are 1 best solutions below

1
Minxin Yu - MSFT On

The package manager for Visual Studio C++ project is Vcpkg.

enter image description here

In Visual Studio, right click your project -> open in terminal :

vcpkg install z3:x64-windows