| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 2 年前 | ||
| 1 年前 | ||
| 2 年前 | ||
| 2 年前 | ||
| 1 个月前 | ||
| 2 年前 | ||
| 2 年前 | ||
| 2 年前 | ||
| 2 个月前 | ||
| 2 年前 |
This is the documentation page for the .NET wrapper of HiGHS.
NuGet
The nuget package Highs.Native is on https://www.nuget.org, at https://www.nuget.org/packages/HiGHS/.
It can be added to your C# project with dotnet
dotnet add package Highs.Native --version 1.15.1
The nuget package contains runtime libraries for
win-x64win-x86linux-x64linux-arm64macos-x64macos-arm64
Local build
To build the wrapper locally, you would need cmake and dotnet. CMake can be configured to generate the files required for the dotnet package locally, wtih the BUILD_DOTNET cmake variable. Assuming the build directory is called build, the package is generated in build/dotnet/Highs.Native, with a single runtime library, depending on the platform. From the HiGHS root directory, run
cmake -S. -Bbuild -DCSHARP=ON -DBUILD_DOTNET=ON
Then, from build/dotnet/Highs.Native, run
dotnet pack -c Release /p:Version=$version
At the moment version is set manually.
Many thanks to Markus-Ludwig Wermer and the team at MENTZ GmbH for the NuGet packaging support!