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

Project graph restore #44322

Draft
wants to merge 3 commits into
base: release/9.0.1xx
Choose a base branch
from
Draft

Conversation

tmat
Copy link
Member

@tmat tmat commented Oct 19, 2024

dotnet-watch loaded the msbuild project graph before restoring the project. Capabilities, such as <ProjectCapability Include="WebAssembly" /> is only added in a props file of microsoft.net.sdk.webassembly.pack package. If the project node from the graph loaded before restore is queried for capabilities, it will not have the WebAssembly capability.

This causes dotnet-watch to fail to apply changes to WASM.

The change moves project graph loading after project evaluation is performed and includes restore target in the evaluation.

The issue wasn't caught before by existing dotnet-watch WASM test because the test helpers always run dotnet build before testing dotnet-watch behavior. The change removes this pre-build step, so that tests validate the correct dotnet-watch behavior on non-restored projects by default.

Fixes #44044

@dotnet-issue-labeler dotnet-issue-labeler bot added Area-Infrastructure untriaged Request triage from a team member labels Oct 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Infrastructure untriaged Request triage from a team member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant