forked from dotnet/android
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WIP] <ResolveAssemblies/> remove NuGet & recursive lookup
One of the remaining pain points in the Xamarin.Android build is the `<ResolveAssemblies/>` MSBuild task. 1. It isn't particularly fast and runs on *every* build. During the devloop it runs twice for `Build` and `Install`. It runs for DTBs, designer builds, too. 2. It breaks for certain NuGet packages as mentioned on a few Github issues: dotnet#3898 dotnet#4074 After some research and looking at build logs, we may be able to rework the behavior: 1. Remove NuGet-related code and recursive assembly searching. 2. Use `@(_ReferencePath)` and `@(_ReferenceDependencyPaths)`. 3. Include assemblies even if they have `%(ResolvedFrom)` == `ImplicitlyExpandDesignTimeFacades`. With these changes I am still able to build SmartHotel360, and the `<ResolveAssemblies/>` is an order of magnitude quicker: Before: 310 ms ResolveAssemblies 1 calls After: 44 ms ResolveAssemblies 1 calls So this would save ~532ms (x2 620ms -> 88ms) from the dev-loop. This is a big WIP, as I need to figure out what types of projects this might break. Let's see what happens on CI!
- Loading branch information
1 parent
55fa709
commit 18730d6
Showing
8 changed files
with
44 additions
and
251 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.