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

Build Optimization Analyzer for long build times #56344

Open
vsfeedback opened this issue Jul 19, 2021 · 2 comments
Open

Build Optimization Analyzer for long build times #56344

vsfeedback opened this issue Jul 19, 2021 · 2 comments
Labels
Area-Analyzers Developer Community The issue was originally reported on https://developercommunity.visualstudio.com Feature Request
Milestone

Comments

@vsfeedback
Copy link

This issue has been moved from a ticket on Developer Community.


Our solution is fairly complex, and in building it we often find Visual Studio 2019 just seems to hit one csproj at random that it slows to a crawl to build.
Possibly we're doing something sub-optimal, or have a dodgy build.props stage or vs-extension or code-analysis NuGet installed. A verbose-level build output might not surface certain problems, and certain others it may surface but rely on human-inference to connect the dots (e.g. too many 'copy-always' instead of 'preserve-newest') ... if they'd even question it (does component C really need all the localized resources of component A copied to it bin dir too?).

A "build optimization analyzer" feature might be handy to tell what's taking so long and what to do about it.
A related capability might detect why running a unit-test launched a build though a build had just finished. If this is our mistake, or from an optional extension, we'd save a lot of time avoiding the cause.

This could also be used by VS telemetry itself: Roslyn reporting there's 10_000 lines of C# in the component, yet it takes 5 min to build on a 12core box, Msft would probably like to have more visibility into such occurrences in the wild, not just rare, vague, and anecdotal feedback.


Original Comments

Feedback Bot on 7/7/2021, 07:27 PM:

Thank you for taking the time to provide your suggestion. We will do some preliminary checks to make sure we can proceed further. We'll provide an update once the issue has been triaged by the product team.

@Evangelink
Copy link
Member

As far as I understand the suggested analyzer is not really a "source code" analyzer so I don't think there will be anything done in this repo.

cc @mavasani

@mavasani
Copy link
Member

@Evangelink Agreed.

@mavasani mavasani transferred this issue from dotnet/roslyn-analyzers Sep 13, 2021
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-Analyzers untriaged Issues and PRs which have not yet been triaged by a lead labels Sep 13, 2021
@jinujoseph jinujoseph added Developer Community The issue was originally reported on https://developercommunity.visualstudio.com Feature Request and removed untriaged Issues and PRs which have not yet been triaged by a lead labels Sep 15, 2021
@jinujoseph jinujoseph added this to the Backlog milestone Sep 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Analyzers Developer Community The issue was originally reported on https://developercommunity.visualstudio.com Feature Request
Projects
None yet
Development

No branches or pull requests

4 participants