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

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

This content has 4 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.

Xamarin Forms: iOS Archive fail

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"
This content has 4 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.