-
Notifications
You must be signed in to change notification settings - Fork 564
Rework Design Time Build to use .aar files directly. #9700
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
Changes from 3 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1029,7 +1029,7 @@ public void BuildAppWithManagedResourceParserAndLibraries () | |
| Assert.LessOrEqual (libBuilder.LastBuildTime.TotalMilliseconds, maxBuildTimeMs, $"DesignTime build should be less than {maxBuildTimeMs} milliseconds."); | ||
| Assert.IsFalse (libProj.CreateBuildOutput (libBuilder).IsTargetSkipped ("_ManagedUpdateAndroidResgen"), | ||
| "Target '_ManagedUpdateAndroidResgen' should have run."); | ||
| Assert.IsFalse (appBuilder.DesignTimeBuild (appProj), "Application project should have built"); | ||
| Assert.IsTrue (appBuilder.DesignTimeBuild (appProj), "Application project should have built"); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This change confuses me; before this change, the design-time build would fail; why? Are the reasons for that failure important? Or is it better to not have failures during a design-time build, as "real" errors will "surface" during a real build?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So before the DTB would fail because the library project .dll would not be found (cos it hand not been built yet). As a result this now builds ok. |
||
| Assert.LessOrEqual (appBuilder.LastBuildTime.TotalMilliseconds, maxBuildTimeMs, $"DesignTime build should be less than {maxBuildTimeMs} milliseconds."); | ||
| Assert.IsFalse (appProj.CreateBuildOutput (appBuilder).IsTargetSkipped ("_ManagedUpdateAndroidResgen"), | ||
| "Target '_ManagedUpdateAndroidResgen' should have run."); | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is probably not worth changing, but I wonder if it's better if this expression was first:
So, it would prevent MSBuild from batching/expanding the first part:
It probably runs the
->Count()N times, but probably not slow enough to matter, though.