JaneySprings / DotNet.Meteor

A VSCode extension that can run and debug .NET apps (Xamarin, MAUI, Avalonia)
https://marketplace.visualstudio.com/items?itemName=nromanov.dotnet-meteor
MIT License
269 stars 10 forks source link

Incorrect Path To Program #121

Closed ajbates2 closed 2 weeks ago

ajbates2 commented 4 weeks ago

Not sure how to solve this. I tried adding the program prop to the launch.json and I get the same issue, and when I click the debug log I get nothing.

Running on this on windows to an android emulator if that helps

Screenshot 2024-09-24 181354

JaneySprings commented 4 weeks ago

Hi @ajbates2 ! Can you check this directory? Do you see any *-Signed.apk file?

ajbates2 commented 4 weeks ago

Yes that is what it is defaulting to

JaneySprings commented 4 weeks ago

This file path is equal to the file path in the error message?

ajbates2 commented 4 weeks ago

Yes it defaults to this path ${workspaceFolder}\bin\Debug\net8.0-android\com.${appName}.mobile-Signed.apk

JaneySprings commented 4 weeks ago

If this file exists, the application should start. Can you send any example app?

I can't reproduce it on my pc: image

rmorin04 commented 4 weeks ago

same issue on my end

ajbates2 commented 4 weeks ago

So, I am able to get meteor working on a fresh maui build but I'm running into these issues when trying to get an existing solution running. Do you know of any nuget package conflicts that exist? Also, the existing project I'm to get running is using the community toolkit view model if that changes anything.

JaneySprings commented 3 weeks ago

Check the following code: https://github.com/JaneySprings/DotNet.Meteor/blob/23edb76c0e3fe12ad334205b94c921574094d334/src/DotNet.Meteor.Debug/LaunchConfiguration.cs#L40-L42

Check again the path to the application that the error gives you. I am sure there is a mistake in it.

Also you can check the Platforms\Android\AndroidManifest.xml file. Maybe you have something like package="com.mycompany.myapp" (Not the same as ApplicationId in csproj) ?