4 Using via NuGet Packages
danbohus редактировал(а) эту страницу 2022-02-08 16:26:46 -08:00

To build \psi applications, we recommend using Visual Studio 2019 on Windows (the free, Community editions is sufficient). Under Linux, we recommend using Visual Studio Code.

To build a \psi application using NuGet packages, simply reference the relevant Microsoft.Psi.* packages available on www.nuget.org in your application. Please note that to use these packages, you need to check the Include prerelease checkbox when you browse for NuGet packages in Visual Studio. The Brief Introduction tutorial also contains a quick description of how you build a very simple, initial \psi application.

Choice of .NET Framework. Platform for Situated Intelligence is build on .NET, and can be used from .NET applications.

  • If you are developing a Linux or a cross-platform application, make sure you use .NET Core 2.0 or above.
  • If you are building a Windows-only application that needs to leverage features specific only to .NET Framework, make sure you configure your application to use .NET Framework 4.7.2 or above.

Platform target. Certain \psi nuget packages work only on 64 bit configurations (see \psi NuGet packages list). If you plan to use one of these packages, you will need to configure the platform target for your application accordingly. You can change the platform target by going to right-clicking on the project, then Properties -> Build -> Platform Target set from AnyCPU to x64.

NOTE: While the Platform for Situated Intelligence source code and the Microsoft.Psi.* NuGet packages are available under an MIT license, our code and NuGet packages have dependencies on other NuGet packages. If you build an application using Platform for Situated Intelligence, please check the licensing requirements for all referenced NuGet packages in your solution.