-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Design-time builds in CPS are doing too much work because BuildingProject is set to true #2417
Comments
This is also blocking XAML: dotnet/project-system#2488. |
The output groups have been like this for a looooooooong time. It went in with this commit:
None of those bugs looks particularly related to me. I'd be willing to try dropping the dependency and seeing what happens. |
Something that came up in a meeting just now, talking to @davkean who was looking at this. It is in fact deliberate that output groups trigger finding of dependencies. Some of the items inside the groups rely on it. CPS needs to handle this somehow. @davkean should this be moved to project-system given that? |
I may be missing a lot of context here, so take this with a grain of salt, but design time builds of Roslyn.sln at least don't have |
@davidwengier Output groups are merged with design-time build if features request them, which happens a lot depending on what VS features you are using, such as XAML designer, Unit Tests, etc. ie This problem still exists. |
To reduce build times, CPS groups build targets for a project together. This has the unintended side-effect of turning
$(BuildingProject)
on during lots of CPS design-time builds.Lots of behavior in common targets is driven by
$(BuildingProject)
, it's basically the legacy equivalent of$(DesignTimeBuild)
!= 'true'":BuildOnlySettings
is basically a dependency of most of the output groups targets.Things that I'm seeing we're doing:
This would explain why ResolveAssemblyReferences is showing up on traces, FindDependencies is very slow.
The text was updated successfully, but these errors were encountered: