András Tóth‘s professional blog
banditoth.net

Hey there 👋, I’m banditoth a .NET MAUI developer from Hungary.
I write about software development with .NET technologies.

You can find me on:
LinkedIn | Github | StackOverflow | X / Twitter | Threads

Category: Uncategorized

  • Xamarin Android: Hibakeresés kikapcsolása Debug build config kivételével

    This content has 5 years. Some of the information in this post may be out of date or no longer work. Please, read this page keeping its age in your mind.

    Ahhoz, hogy az ADB-n keresztüli hibakaeresést kikapcsoljuk az Android alkalmazásnál, az Android projekt assemblyinfo.cs kódjába a követekzőt kell beletenni:

    #if DEBUG
    [assembly: Application(Debuggable=true)]
    #else
    [assembly: Application(Debuggable=false)]
    #endif
    

    Forrás:
    https://docs.microsoft.com/en-us/xamarin/android/deploy-test/release-prep/?tabs=windows#protect-the-application

  • Xamarin Forms: iOS Archive fail

    This content has 5 years. Some of the information in this post may be out of date or no longer work. Please, read this page keeping its age in your mind.
    The "AllowUnsecureUrls" parameter is not supported by the "XamarinDownloadArchives" task. Verify the parameter exists on the task, and it is a settable public instance property.
    

    Nem lehet archiválni a projektet a fenti hibaüzenet miatt.

    Megoldás: VS Clean Solution, VS Exit, bin és obj mappák törlése, rebuild, majd archive.

    bin és obj mappák rekurzív törlése OSX-en (sh):

    find . -name 'bin' -type f -delete
    find . -name 'obj' -type f -delete
    

    Rekurzív törlés Windowson (bat):

    FOR /F "tokens=*" %%G IN ('DIR /B /AD /S bin') DO RMDIR /S /Q "%%G"
    FOR /F "tokens=*" %%G IN ('DIR /B /AD /S obj') DO RMDIR /S /Q "%%G"