Repository navigation
Conversation
Co-authored-by: Copilot App <[email protected]>
Contributor
|
Hey @dotnet/aspnet-build, looks like this PR is something you want to take a look at. |
Member
|
This feels wrong too, repos shouldn’t be aware of the layout of other repos. A better approach would be to put the file in a transport pack and flow it to aspnetcore (we just need to make sure it gets produced all the time, not just for browser-wasm) |
Member
Author
|
@akoeplinger Why the runtime pack itself can't be the "transport pack"? |
Member
|
because the runtime pack is only produced on the browser-wasm build job |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
[blazor] Use runtime source declarations in VMR builds
Use runtime's checked-in TypeScript declarations for VMR builds.
Description
Follow up on #70344 to fix the browser-wasm package restore failure in dotnet/dotnet#10802. VMR builds request runtime version
12.0.0-ci, but some verticals do not produceMicrosoft.NETCore.App.Runtime.browser-wasm. Declaration extraction runs during general toolset initialization, so gating it only on the JavaScript build would not resolve the failure.When
DotNetBuildFromVMRis true, exclude the browser-wasm package download and copy runtime's checked-insrc/runtime/src/native/libs/Common/JavaScript/loader/dotnet.d.tsfrom the VMR root supplied throughSourceBuiltArtifactsBasePath. Standalone builds continue extracting declarations from the flowed browser runtime pack. Missing VMR roots or declarations fail explicitly rather than falling back to a package.Track the declaration source and selected source path so source edits at an unchanged runtime version, missing output regeneration, and switching between VMR and standalone builds invalidate the shared npm input correctly. Preserve source-only/design-time exclusions, package timestamp handling, npm prerequisites, and template generation. Update the build documentation.
Validation: reproduced NU1102 on current main and verified that the same focused GenerateFiles restore passes with representative VMR properties and the actual declaration from VMR commit
4ecc70530be868a734810b1da40b83a352532315. A local MSBuild harness passed 22 incremental, exclusion, package-transition, and npm-prerequisite checks. Focused standalone and VMR wrapper restores with available flowed versions also passed. Full VMR Windows/Linux verticals and a full TypeScript build were not run. A broader wrapper using global12.0.0-cipassed the repaired declaration/template stages but subsequently could not restore the VMR-producedMicrosoft.NETCore.App.Reffor RepoTasks outside VMR.Related: #70344 and dotnet/dotnet#10802. No separate bug issue is linked.
Note
This PR description was generated with the assistance of GitHub Copilot.