Skip to content

Cross-targeted incremental unchanged builds are slow #1997

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
jeromelaban opened this issue Apr 20, 2017 · 1 comment
Closed

Cross-targeted incremental unchanged builds are slow #1997

jeromelaban opened this issue Apr 20, 2017 · 1 comment
Labels

Comments

@jeromelaban
Copy link
Contributor

jeromelaban commented Apr 20, 2017

When having a simple cross-targeted project, such as this one:

<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <TargetFrameworks>netcoreapp1.1;net46</TargetFrameworks>
  </PropertyGroup>
</Project>

Hitting F5 always re-executes a lot of msbuild targets even if nothing has changed. For this simple project, the top-level targets are :

1>      196 ms  ResolveAssemblyReference                   2 calls
1>      365 ms  ResolvePackageDependencies                 2 calls

This makes building large solutions that use cross-targeting very slow, as all dependent assemblies are partially re-evaluated. This gets worse if the number of packages installed is large.

@jeromelaban
Copy link
Contributor Author

Tracked here dotnet/sdk#1116

@AR-May AR-May added the triaged label Feb 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants