Skip to content
This repository was archived by the owner on Apr 6, 2021. It is now read-only.

Conversation

@jonathanpeppers
Copy link
Member

Context: dotnet/android@2ea31e6
Context: dotnet/android@master...jonathanpeppers:androidx-migration-test

To improve build performance we have dropped the linksrc directory
from Xamarin.Android. This dramatically improved the overall file size
of the obj directory and helped with PCs running Windows Defender.

This unfortunately broke the AndroidX.Migration for Release builds,
but we can fix it:

  • If $(MonoAndroidLinkerInputDir) is non-empty we can use the
    existing behavior, otherwise...
  • We can do a <Copy/> of the assemblies to
    obj\Release\androidx\cecil.
    • pdb/mdb files, too!
  • <CecilfyFiles/> can then use the files in androidx\cecil
    directory.
  • Lastly, we will have to patch up @(ResolvedAssemblies) and
    @(ResolvedUserAssemblies) to use the new files.

Other changes:

  • Updated .gitignore for Resource.designer.cs

Context: dotnet/android@2ea31e6
Context: dotnet/android@master...jonathanpeppers:androidx-migration-test

To improve build performance we have dropped the `linksrc` directory
from Xamarin.Android. This dramatically improved the overall file size
of the `obj` directory and helped with PCs running Windows Defender.

This unfortunately broke the AndroidX.Migration for `Release` builds,
but we can fix it:

* If `$(MonoAndroidLinkerInputDir)` is non-empty we can use the
  existing behavior, otherwise...
* We can do a `<Copy/>` of the assemblies to
  `obj\Release\androidx\cecil`.
  * pdb/mdb files, too!
* `<CecilfyFiles/>` can then use the files in `androidx\cecil`
  directory.
* Lastly, we will have to patch up `@(ResolvedAssemblies)` and
  `@(ResolvedUserAssemblies)` to use the new files.

Other changes:

* Updated `.gitignore` for `Resource.designer.cs`
@jonathanpeppers
Copy link
Member Author

Here is a build log where I used this on XA master: msbuild.zip

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants