-
Notifications
You must be signed in to change notification settings - Fork 533
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
Rework Design Time Build to use .aar files directly. #9423
base: main
Are you sure you want to change the base?
Conversation
d08fdf2
to
8f05381
Compare
373a6a5
to
f96ca96
Compare
8b86bf8
to
ddc632f
Compare
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
@@ -35,8 +35,7 @@ Copyright (C) 2011-2012 Xamarin. All rights reserved. | |||
Disable generation to avoid "bizarre" build errors. --> | |||
<GenerateSerializationAssemblies>Off</GenerateSerializationAssemblies> | |||
<_AndroidResourceDesigner>Resource.designer.cs</_AndroidResourceDesigner> | |||
<IsXBuild Condition="'$(MSBuildRuntimeVersion)' == ''">true</IsXBuild> |
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.
xbuild?!? Looking at this file, it's really old and only imported by classic Xamarin.Android. Maybe we don't need to touch this file here, and we can delete all references to Xamarin.Android.CSharp.targets
in a different PR?
var path = Directory.GetParent (entry.FullName).Name; | ||
if (ext == ".xml" || ext == ".axml") { | ||
if (string.Compare (path, "raw", StringComparison.OrdinalIgnoreCase) != 0) { | ||
using var ms = new MemoryStream (); |
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.
Can this use the MemoryStreamPool
we have in dotnet/android-tools?
if (entry.FullName != resmap) | ||
continue; | ||
Log.LogDebugMessage ($"Found: {entry.FullName}"); | ||
using var ms = new MemoryStream(); |
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.
Same thought with MemoryStreamPool
here.
<MSBuild | ||
Projects="@(ProjectReference)" | ||
Targets="Restore;_GetProjectResourceDirectory" |
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.
Two questions here:
- Does this really need to run
Restore
? - What happens if the
@(ProjectReference)
is a plainnet9.0
project or something old likenetstandard2.0
or PCL?
<_AdditionalProperties> | ||
_ComputeFilesToPublishForRuntimeIdentifiers=true | ||
;SelfContained=true | ||
;DesignTimeBuild=$(DesignTimeBuild) |
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.
Does the inner-build per RID run during a design-time build? Does it even need to?
It's doing stuff related to the trimmer & AOT, it seems like should figure out how to skip it?
Context dotnet/maui#25207
Also
designtime
folder.