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

Default android SDK path with space in it causes an error at build #54

Closed nok3250 closed 1 year ago

nok3250 commented 1 year ago

Hey, I've installed Dot.Net.Meteor to use it for developing a MAUI app in VS Code. I have previously installed android SDK at C:\Program Files (x86)\Android\android-sdk via VS2022 xamarin installation It is in normal state, and it and emulators work correctly for Xamarin in VS 2022 installed on machine.

When I try to run the debugger i see the following error in the terminal:

Executing task: dotnet build "c:\Maui\mobile\MauiDemoApp\MauiDemoApp\MauiDemoApp.csproj" -c:Debug -f:net7.0-android -t:Build -p:EmbedAssembliesIntoApk=true -p:AndroidSdkDirectory="C:\Program Files (x86)\Android\android-sdk"

x86 : The term 'x86' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:180

As I understand the command in terminal doesn't handle a space symbol correctly if path contains it. Could you please give the instruction how to avoid it, or make some patch to Meteor to have ability to set a different path to SDK in settings? (I can copy SDK to other folder with non-space-containing path)

nok3250 commented 1 year ago

Oh, it's a duplicate of https://github.com/JaneySprings/DotNet.Meteor/issues/34 So I close this one