Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comment out ORT-Nightly feed in test app NuGet.config #16762

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion csharp/tools/MauiModelTester/NuGet.config
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@
<packageSources>
<clear />
<add key="NuGet Official" value="https://api.nuget.org/v3/index.json" />
skottmckay marked this conversation as resolved.
Show resolved Hide resolved
<!-- Uncomment the following line to use packages from the ORT nightly feed
<add key="ORT-Nightly" value="https://aiinfra.pkgs.visualstudio.com/PublicPackages/_packaging/ORT-Nightly/nuget/v3/index.json" />
-->
</packageSources>
<disabledPackageSources>
<clear />
</disabledPackageSources>
</configuration>
</configuration>
13 changes: 12 additions & 1 deletion csharp/tools/MauiModelTester/ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,24 @@ Resources\Raw\test_data\test_data_set_0
The MAUI application will read the model and test data from those locations and should need no other changes to be able
to execute the model.

NOTE: The project uses builds from the nightly feed to keep things simple.
The project uses builds from the nightly feed by default to keep things simple.

If it was part of the main ONNX Runtime C# solution we'd have to
- add the ORT nightly feed to the top level nuget.config
- this potentially adds confusion about where nuget packages come from in unit tests
- keep updating the referenced nightly packages so they remain valid so the complete solution builds in the CI

You will need to manually add the ORT-Nightly feed to the packageSources section of the nuget.config in this directory.
- `<add key="ORT-Nightly" value="https://aiinfra.pkgs.visualstudio.com/PublicPackages/_packaging/ORT-Nightly/nuget/v3/index.json" />`
- This feed isn't allowed in the checked in nuget.config

If you need to update the ORT packages used by the app to the latest nightly:
- In Visual Studio, Tools -> Nuget Package Manager -> Manage NuGet Packages for Solution...
- Make sure 'Include prerelease' is checked
- Set Package Source to ORT-Nightly
- Update Microsoft.ML.OnnxRuntime, Microsoft.ML.OnnxRuntime.Managed and Microsoft.ML.OnnxRuntime.Extensions to the
latest build.

## Testing C# or native code changes

If you have new code to test the easiest way is to run the nuget packaging pipeline on
Expand Down