-
Notifications
You must be signed in to change notification settings - Fork 27
Building
Dani John edited this page Sep 22, 2023
·
30 revisions
How to add a Feed to Visual Studio
The following package feeds are required:
https://github.com/CommunityToolkit/WindowsCommunityToolkit/wiki/Preview-Packages#toolkit-labs-
Install the .NET 6 SDK from https://dotnet.microsoft.com/en-us/download (if not already done so).
Then from a cmd prompt:
- git clone https://github.com/microsoft/onnxruntime
- cd onnxruntime
- git remote add tommcdon https://github.com/tommcdon/onnxruntime
- git fetch --all
- git switch -t tommcdon/removeRefReturns
- cd csharp\src\Microsoft.ML.OnnxRuntime
- dotnet pack -c release /p:PackageVersion=5.0.0
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.
Documenting the changes made for building in Release with .NET Native
-
Modified version of OnnxRuntime.Managed package is used without ref struct return.
-
In
Drizzle.UI.UWP/Properties/Default.rd.xml
the following changes made for Trimming related issue.
<Assembly Dynamic="Required All" Name="Microsoft.Extensions.Options"/>
<Assembly Dynamic="Required All" Name="Microsoft.Extensions.Logging"/>
<Assembly Dynamic="Required All" Name="Microsoft.Extensions.Http"/>