dotnet / msbuild

The Microsoft Build Engine (MSBuild) is the build platform for .NET and Visual Studio.

Home Page:https://docs.microsoft.com/visualstudio/msbuild/msbuild

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Broken MSBuild on Android Build .NET MAUI

BrandonHilligenn opened this issue · comments

Issue Description

I have been struggling with this exception trying to deploy my app to an android device

1>MSBUILD : error : System.Runtime.Remoting.RemotingException: Object '/665a9900_0123_47df_ab79_cf6f79551165/xqergvgyaiklqjxad3przta7_4.rem' has been disconnected or does not exist at the server.

This makes no sense as it never happened before and my device is connected via usb cable.

Steps to Reproduce

Literally just trying to build to any android device in debug or release mode.

Expected Behavior

The app builds to the device as always.

Actual Behavior

I get this error even though the device is connected via usb cable:

1>MSBUILD : error : System.Runtime.Remoting.RemotingException: Object '/665a9900_0123_47df_ab79_cf6f79551165/xqergvgyaiklqjxad3przta7_4.rem' has been disconnected or does not exist at the server.

Analysis

No response

Versions & Configurations

No response

Hey @BrandonHilligenn - since the MSBuild team doesn't own the build tasks/targets for building and publishing to Android devices I'm going to transfer this to the dotnet/maui repo. They should be able to help triage the issue faster/with more context, and if there is an issue in the underlying MSBuild engine or the Common targets that live here, we can come back to it.

Thanks for reporting!

actually I lack permissions to transfer this to dotnet/maui, so could you please re-open this there?

This issue was moved to dotnet/maui#21921