Skip to content

Conversation

@skottmckay
Copy link
Contributor

No description provided.

samuel100 and others added 17 commits November 13, 2025 16:31
* Various updates

- use consistent app name so all downloaded models go to the same location
- add some utilities
- ensure EPs are downloaded to make it clear that that is what takes time on the first run
- add more space in the code to separate sections
- reorder some things to try and make the output a bit more intuitive if you haven't read the code yet
- target net9* everywhere
  - the SDK targets net8 as a lower common denominator. app can target anything later than that
- try and clarify the model/model variant options in HelloFoundryLocalSdk
  - keep other apps simple and alias based

* Update comments

* Update samples/cs/GettingStarted/src/FoundryLocalWebServer/Program.cs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Fix LoggerFactory lifetime

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Update all csprojs
@vercel
Copy link

vercel bot commented Nov 17, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
foundry-local Ready Ready Preview Comment Nov 17, 2025 11:39am

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes build issues for Linux x64 by ensuring native ONNX Runtime libraries are properly copied during the build process and by making the ExcludeExtraLibs.props import unconditional across all sample projects.

Key Changes:

  • Removed conditional imports (Condition="'$(PublishDir)' != ''") from all sample project files to ensure ExcludeExtraLibs.props is always imported
  • Added Linux x64-specific build targets to manually copy ONNX Runtime GPU and GenAI CUDA native libraries
  • Added centralized package version for Microsoft.ML.OnnxRuntimeGenAI.Cuda

Reviewed Changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
samples/cs/GettingStarted/windows/ModelManagementExample/ModelManagementExample.csproj Removed PublishDir condition from ExcludeExtraLibs.props import
samples/cs/GettingStarted/windows/HelloFoundryLocalSdk/HelloFoundryLocalSdk.csproj Removed PublishDir condition from ExcludeExtraLibs.props import
samples/cs/GettingStarted/windows/FoundryLocalWebServer/FoundryLocalWebServer.csproj Removed PublishDir condition from ExcludeExtraLibs.props import
samples/cs/GettingStarted/windows/AudioTranscriptionExample/AudioTranscriptionExample.csproj Removed PublishDir condition from ExcludeExtraLibs.props import
samples/cs/GettingStarted/cross-platform/ModelManagementExample/ModelManagementExample.csproj Removed PublishDir condition from ExcludeExtraLibs.props import
samples/cs/GettingStarted/cross-platform/HelloFoundryLocalSdk/HelloFoundryLocalSdk.csproj Removed PublishDir condition from ExcludeExtraLibs.props import and extra blank line
samples/cs/GettingStarted/cross-platform/FoundryLocalWebServer/FoundryLocalWebServer.csproj Removed PublishDir condition from ExcludeExtraLibs.props import
samples/cs/GettingStarted/cross-platform/AudioTranscriptionExample/AudioTranscriptionExample.csproj Removed PublishDir condition from ExcludeExtraLibs.props import
samples/cs/GettingStarted/ExcludeExtraLibs.props Added Linux x64 build support with manual native library copy targets
samples/cs/GettingStarted/Directory.Packages.props Added Microsoft.ML.OnnxRuntimeGenAI.Cuda package version

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

…undryLocalSdk.csproj

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Contributor

@samuel100 samuel100 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've added the props changes into my branch, but left the csproj files the same (with publish)

Base automatically changed from samuel100/sdkvnext to main November 18, 2025 03:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants