Skip to content

Updating NuGet packages does not update the app #7890

@mattleibow

Description

@mattleibow

Android application type

.NET Android (net7.0-android, etc.)

Affected platform version

All

Description

I have noticed that when I update nugets in my maui app, the dll updates do not reach the final device.

Steps to Reproduce

I have a GitHub Action here with a test case script:

  1. dotnet new maui
  2. dotnet build -f net8.0-android /bl:build-1-initial.binlog
  3. dotnet add package Newtonsoft.Json --version 13.0.1
  4. dotnet build -f net8.0-android /bl:build-1-after-json.binlog
  5. dotnet add package Newtonsoft.Json --version 13.0.3
  6. dotnet build -f net8.0-android /bl:build-1-after-update.binlog
  7. (Get-Item obj\Debug\net8.0-android\android\assets\Newtonsoft.Json.dll).VersionInfo

The output of 7. is still 13.0.1

Did you find any workaround?

Rebuild

Relevant log output

https://github.com/mattleibow/maui-bug-repros/actions/runs/4440605792/jobs/7794616600#step:5:153

Metadata

Metadata

Labels

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

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions