Skip to content

_GeneratePackageManagerJava runs on every incremental build #9212

Closed

Description

@jonathanpeppers

Android framework version

net9.0-android

Affected platform version

.NET 9

Description

I was testing our incremental build and noticed:

  1. An incremental build of a MAUI project, where I changed either C# or XAML

  2. This value changes each time:

image

image

This generates a new obj\Debug\net9.0-android\android\environment.arm64-v8a.ll each time, causing us to run _CompileNativeAssemblySources each time.

Could we use the same Guid for most Debug builds? Would only Release builds need a unique Guid?

/cc @grendello

Steps to Reproduce

  1. dotnet new maui
  2. F5 in VS
  3. Make a small code changes
  4. F5 in VS

Did you find any workaround?

No

Relevant log output

hellomaui_Debug_AnyCPU_Build_2024-08-16T11_28_53.1332631-05_00.binlog.zip

Activity

  1. added this to the .NET 9 milestone on Aug 16, 2024
  2. grendello commented on Aug 19, 2024

    @grendello
    Contributor

    I don't think even Release builds need a unique build id, as far as we are concerned. The Guids we care about are the assembly MVIDs, and that only in Release builds when marshal methods are enabled. So we should be fine forcing the same build id in Debug (I wouldn't force it in Release, as something else somewhere may expect the id to be different).

  3. locked and limited conversation to collaborators on Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Area: App+Library BuildIssues when building Library projects or Application projects.

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions