Skip to content

Include localPath in deps.json for runtime assets #50120

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

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

elinor-fung
Copy link
Member

@elinor-fung elinor-fung commented Aug 7, 2025

Include localPath property in deps.json for runtime assets

  • Determine the local path based on DestinationSubDirectory metadata + file name
  • Use RuntimeFile and ResourceAssembly constructors that take a local path

The tests in GivenThatWeWantToBuildANetCoreApp validate the generated .deps.json and the current behaviour when running the produced output. Until the runtime change to actually use the localPath property gets in and over to the sdk repo, putting dependencies in custom subdirectories will fail at run time.

Resolves #48406

Needs #50073 for the updated Microsoft.Extensions.DependencyModel

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.

Generated .deps.json for a resolved package should include path relative to published app layout
1 participant