Skip to content

Latest commit

 

History

History
33 lines (26 loc) · 1.75 KB

NUGET.md

File metadata and controls

33 lines (26 loc) · 1.75 KB

Creating a NuGet package

After building dotnet\src\KukuDotNet.csproj you can create a NuGet package that you can use to easily add Microsoft Kuku capabilities to all of your .NET projects. Currently the NuGet package is only supported in Windows.

You will need to:

  1. Compile both Kuku and Kuku_C projects with CMake. Build dotnet\src\KukuNet.csproj.
  2. Download and install the NuGet command line tool.
  3. Run the command below to create NuGet package
  4. Add NuGet package reference to your .NET projects

The command to create the NuGet package after compiling binaries is the following:

cd dotnet\nuget
nuget pack KukuNet.nuspec -properties Configuration=Release -Verbosity detailed -OutputDir Release
cd ..\..

After the package is created, copy it from dotnet\nuget\Release to a known location (e.g., C:\NuGetPackages).

To add a reference to the NuGet package, you will need to configure Visual Studio so it can find packages in this known location. In Microsoft Visual Studio 2019, for example, you can:

  1. Select the menu uption Tools / Options...
  2. On the left pane of the Options dialog, navigate to NuGet Package Manager / Package Sources
  3. On the right pane of the Options dialog, add a new package source that points to the directory where you copied the NuGet package (e.g., C:\NuGetPackages)

After this, you should be able to add a reference to this package in your own .NET project. After creating or opening your project in Visual Studio, you can right click on the project in the Solution Explorer window, and select Manage NuGet packages.... In the window that appears you will be able to select the Microsoft.Research.Kuku NuGet package to add to your project.