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

When loading a project, use metadata references when possible. #1836

Closed
wants to merge 1 commit into from

Conversation

JoeRobich
Copy link
Member

This will not help CI cases where a build has not already been performed. It could significantly speed up project loading on developer machines when they already have a build of referenced projects.

Could help in situations like #1378 (comment)

@@ -51,6 +51,9 @@ internal static class MSBuildWorkspaceLoader
{
try
{
// In the case of loading a specific project, we don't want to load referenced projects, which is very time consuming, when there is already
// a build on disk we can pull metadata from.
workspace.LoadMetadataForReferencedProjects = true;
Copy link
Member Author

Choose a reason for hiding this comment

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

I assumed this wouldn't be useful in the solution loading case, since referenced projects would likely be part of the solution. Thinking about it again, it isn't strictly necessary, so this may just need to be enabled generally.

Copy link
Contributor

@RikkiGibson RikkiGibson left a comment

Choose a reason for hiding this comment

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

Is this the right base branch for this change?

Any before/after comparison we can do in a project which has already been built on disk?

@RikkiGibson
Copy link
Contributor

May need to assign someone to take the PR over if we think this is a useful change (it seems like it probably is?)

@zdenek-jelinek
Copy link

Hello @RikkiGibson, is there possibly any way to move this forward, please? While the initial comment states that this probably won't help CI cases, I'm more than happy to reorder build/format in my pipeline to make format faster.

I'm not in a hurry to get this but it would be nice to know if any progress is planned or if I should look for other tools instead, the performance of dotnet format in CI is limiting even for smaller projects.

@RikkiGibson RikkiGibson changed the base branch from release/6.x to main October 30, 2023 23:09
@RikkiGibson RikkiGibson self-assigned this Oct 30, 2023
@JoeRobich
Copy link
Member Author

Closing as 9.x development has moved into the dotnet/sdk repo.

@JoeRobich JoeRobich closed this May 7, 2024
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.

None yet

3 participants