Xamarin Forms app not updating after deploy

Information:

Xamarin Forms has an intermittent bug where an app will build and successfully deploy, but when checking the app of the device/emulator, the app hasn't updated at all and remains running an old version of the app. The solution to this lies within the bin folder of your project.

The problem seem to happen regardless of the version of Visual Studio or Xamarin and hits a single project specifically so this tells us that the issue has altered something within the project and not within the Visual Studio installation.

Before you begin, uninstall all versions of the apps from all emulators and devices you use to test the app, this will ensure that once we've corrected the issue, it'll be able to fresh install instead of update.

The fix:

Once uninstalled, navigate to the solution folder on your disk drive and open the folder of the project that this issue effects, you'll need to delete both the Debug and Release folders from both the bin and obj folders. You should now be able to deploy the project to a device or emulator without issue and it should be the latest version.

Further Reading:

See the following thread on the Xamarin forums for more info:

https://forums.xamarin.com/discussion/45327/newest-version-of-code-not-always-deployed-when-debugging-from-xamarin-studio


Published at

Tags: Xamarin,Xamarin Forms,Android,C#,Visual Studio

Luke Alderton

Comments

Luca Ziegler
You need to reference the right dll, the file is located at "[Forms Project]\bin\Debug\netstandard2.0\xxx.dll"
25/01/2019
Share with
Tags
Latest Comments
By Mark Gentry on Windows Server 2019 - Change product key does nothing
20 Aug 2021, 03:30 AM
By Cathy on In-Place Upgrade for a Windows Server domain controller
31 Jul 2021, 18:28 PM
By Mr. Greymatter on Raspberry Pi - Running Java app on Raspbian
16 Feb 2021, 07:35 AM
By Mikko Seittenranta on Xamarin Forms multiple instances of same app open
16 Feb 2021, 04:34 AM
By Andrew on Auto/Custom height on Xamarin Forms WebView for Android and iOS
22 Jan 2021, 22:15 PM
By Nick on Raspberry Pi - Running Java app on Raspbian
14 Oct 2020, 19:37 PM
By Ivan on Fixed: Value cannot be null Parameter Name: source
15 Sep 2020, 19:47 PM
By Anand on Raspberry Pi - Bluetooth using Bluecove on Raspbian
7 Sep 2020, 16:53 PM
Categories
App Development
Event
Game Development
Mapping
Modelling
Programming
Review
Robotics
Tutorial
Web Development