dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
21.82k stars 1.66k forks source link

Broken MSBuild on Android Build .NET MAUI #21921

Open JanKrivanek opened 2 months ago

JanKrivanek commented 2 months ago

Issue moved from dotnet/msbuild#10034


From @BrandonHilligenn on Thursday, April 18, 2024 2:00:12 PM

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

JanKrivanek commented 2 months ago

Issue moved from dotnet/msbuild#10034


From @baronfel on Thursday, April 18, 2024 2:05:58 PM

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?

dotnet-policy-service[bot] commented 1 month ago

Thanks for the issue report @JanKrivanek! This issue appears to be a problem with Visual Studio, so we ask that you use the VS feedback tool to report the issue. That way it will get to the routed to the team that owns this experience in VS.

If you encounter a problem with Visual Studio, we want to know about it so that we can diagnose and fix it. By using the Report a Problem tool, you can collect detailed information about the problem, and send it to Microsoft with just a few button clicks.

  1. Go to the Visual Studio for Windows feedback tool or Visual Studio for Mac feedback tool to report the issue
  2. Close this bug, and consider adding a link to the VS Feedback issue so that others can follow its activity there.
dotnet-policy-service[bot] commented 1 month ago

Thanks for the issue report @JanKrivanek! This issue appears to be a problem with Visual Studio (Code), so we ask that you use the VS feedback tool to report the issue. That way it will get to the routed to the team that owns this experience in VS (Code).

If you encounter a problem with Visual Studio or the .NET MAUI VS Code Extension, we want to know about it so that we can diagnose and fix it. By using the Report a Problem tool, you can collect detailed information about the problem, and send it to Microsoft with just a few button clicks.

  1. Go to the Visual Studio for Windows feedback tool or .NET MAUI VS Code Extension repository to report the issue
  2. Close this bug, and consider adding a link to the VS Feedback issue so that others can follow its activity there.