Skip to content

Support VS single evaluation mode #5293

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

Closed
wants to merge 3 commits into from
Closed

Conversation

ViktorHofer
Copy link
Member

@ViktorHofer ViktorHofer commented Apr 19, 2020

With the recent change to support RestoreUseStaticGraphEvaluation, the hook point before Restore was removed as it was assumed that the TargetFrameworks modification can be done during evaluation. As VS shares the same evaluation for restore and build, the modification is ignored (as it is conditioned on MSBuildRestoreSessionId and IsGraphBuild). Changing the condition to only check for MSBuildRestoreSessionId or BuildingInsideVisualStudio (as VS doesn't set MSBuildRestoreSessionId).

Additionally adding a condition to AttachTargetFrameworkSuffixToTargetFrameworks to only run if necessary.

With the recent change to support RestoreUseStaticGraphEvaluation, the hook point before Restore was removed as it was assumed that the TargetFrameworks modification can be done during evaluation. As VS shares the same evaluation for restore and build, the modification is ignored (as it is conditioned on MSBuildRestoreSessionId and IsGraphBuild). Changing the condition to only check for MSBuildRestoreSessionId or building inside Visual Studio (as VS doesn't set MSBuildRestoreSessionId).
@ViktorHofer ViktorHofer requested review from ericstj and Anipik April 19, 2020 14:50
@ViktorHofer
Copy link
Member Author

ViktorHofer commented Apr 19, 2020

As an additional note, VS doesn't use static graph restore as it gets the evaluation from the project system.

@ViktorHofer
Copy link
Member Author

Closing as this doesn't fix the actual issue as restore inside VS doesn't run any targets. Following up offline.

@riarenas riarenas deleted the ViktorHofer-vs-restore branch June 15, 2020 15:19
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.

1 participant