Skip to content

Building

Dani John edited this page Sep 22, 2023 · 30 revisions

Dependencies

How to add a Feed to Visual Studio

The following package feeds are required:

Toolkit Labs

https://github.com/CommunityToolkit/WindowsCommunityToolkit/wiki/Preview-Packages#toolkit-labs-

OnnxRuntime.Managed

Install the .NET 6 SDK from https://dotnet.microsoft.com/en-us/download (if not already done so).

Then from a cmd prompt:

Add the csharp\src\Microsoft.ML.OnnxRuntime\bin\Release to the feed.

Open nuget package manager and update the Microsoft.ML.OnnxRuntime.Managed package to the 5.0.0 version we just built.

NOTE

Documenting the changes made for building in Release with .NET Native

<Assembly Dynamic="Required All" Name="Microsoft.Extensions.Options"/>
<Assembly Dynamic="Required All" Name="Microsoft.Extensions.Logging"/>
<Assembly Dynamic="Required All" Name="Microsoft.Extensions.Http"/>
Clone this wiki locally