Skip to content

Conversation

@jonathanpeppers
Copy link
Member

I was doing some review of the MSBuild targets that run when you save
an axml file. The first thing I found was:

Building target "_GeneratePackageManagerJavaForDesigner" completely.
Output file "obj\Debug\100\android\src\mono\MonoPackageManager.java" does not exist.

This MSBuild target was running every time that
SetupDependenciesForDesigner runs.

We no longer generate MonoPackageManager.java at all, so instead:

  • Look for MonoPackageManager_Resources.java, which actually exists.
  • Use $(_AcwMapFile) instead of the typemaps, since the designer
    actually uses that file. In some cases the typemaps aren't generated
    either.

These changes improve SetupDependenciesForDesigner by about 500ms on
a small app.

I was doing some review of the MSBuild targets that run when you save
an axml file. The first thing I found was:

    Building target "_GeneratePackageManagerJavaForDesigner" completely.
    Output file "obj\Debug\100\android\src\mono\MonoPackageManager.java" does not exist.

This MSBuild target was running every time that
`SetupDependenciesForDesigner` runs.

We no longer generate `MonoPackageManager.java` at all, so instead:

* Look for `MonoPackageManager_Resources.java`, which actually exists.
* Use `$(_AcwMapFile)` instead of the typemaps, since the designer
  actually uses that file. In some cases the typemaps aren't generated
  either.

These changes improve `SetupDependenciesForDesigner` by about 500ms on
a small app.
@jonathanpeppers jonathanpeppers merged commit fbb3342 into dotnet:master Nov 8, 2019
@jonathanpeppers jonathanpeppers deleted the generatepackagemanagerjavafordesigner branch November 8, 2019 16:34
jonpryor pushed a commit that referenced this pull request Nov 8, 2019
…ner (#3889)

I was doing some review of the MSBuild targets that run when you save
an axml file. The first thing I found was:

    Building target "_GeneratePackageManagerJavaForDesigner" completely.
    Output file "obj\Debug\100\android\src\mono\MonoPackageManager.java" does not exist.

This MSBuild target was running every time that
`SetupDependenciesForDesigner` runs.

We no longer generate `MonoPackageManager.java` at all, so instead:

* Look for `MonoPackageManager_Resources.java`, which actually exists.
* Use `$(_AcwMapFile)` instead of the typemaps, since the designer
  actually uses that file. In some cases the typemaps aren't generated
  either.

These changes improve `SetupDependenciesForDesigner` by about 500ms on
a small app.
@github-actions github-actions bot locked and limited conversation to collaborators Jan 28, 2024
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.

3 participants