четвер, 23 серпня 2018 р.

ConferenceVision build


It was possible to build https://github.com/Microsoft/ConferenceVision

Some details doesn't work, but it builds and run and I was able to get a simple Achievement.

https://github.com/igorkovalchuk/ConferenceVision/tree/linux-build

README-LINUX.md

This application needs Android => 5.0 and it needs lot of Internal Storage to install. I've set 1.5 Gb

The build took 2.5 minutes.

P.S. Don't change the emulator's properties after you have created it, otherwise this application will crash when you open a camera. Probably it doesn't see the sdcard or a file storage after that.



середа, 22 серпня 2018 р.

build #993


I've moved to Xamarin.Android build #993 and Mono 5.14 and nuget,
including the new VSCode 1.25.1 and C# plugin and Monodevelop 7.5

Also I am using the dotnet sdk - it is necessary to build the netstandard2.0 projects and restore the nuget packages.

And I've updated the documentation:
https://goo.gl/mQvTJk

P.S. Monodevelop 7.5 doesn't open the Droid projects.

четвер, 16 серпня 2018 р.

issues :: AotAssemblies and release settings


Don't forget to use <AotAssemblies>false</AotAssemblies> when you build the release apk on Linux.
But I may be wrong, because things are changing from time to time.

Other settings in "Release|AnyCPU" section may include this:

    <DebugSymbols>true</DebugSymbols>
    <DebugType>pdbonly</DebugType>
    <Optimize>true</Optimize>
    <OutputPath>bin\Release</OutputPath>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
    <AndroidManagedSymbols>true</AndroidManagedSymbols>
    <AndroidUseSharedRuntime>false</AndroidUseSharedRuntime>


    <AndroidKeyStore>True</AndroidKeyStore>
    <AndroidSigningKeyStore>/mypathtojks/my_xamarin_keystore.jks</AndroidSigningKeyStore>
    <AndroidSigningStorePass>mystorepass</AndroidSigningStorePass>
    <AndroidSigningKeyAlias>myandroidalias</AndroidSigningKeyAlias>
    <AndroidSigningKeyPass>mykeypass</AndroidSigningKeyPass>

<!--
    <AndroidSupportedAbis>armeabi-v7a;x86;x86_64;arm64-v8a;armeabi</AndroidSupportedAbis>
-->

    <AndroidSupportedAbis>armeabi-v7a</AndroidSupportedAbis>

    <AndroidLinkMode>SdkOnly</AndroidLinkMode>


You may try to use AndroidLinkMode = Full, but for me it doesn't work today.

issues :: msbuild :: "MonoAndroid,Version=v1.0" not found


If msbuild outputs the next error:

The reference assemblies for framework "MonoAndroid,Version=v1.0" were not found.

Please add the TargetFrameworkRootPath to your Droid csproj:

<PropertyGroup>
<AndroidSdkDirectory>/home/myuser/my-android-toolchain-sdk-path</AndroidSdkDirectory>
<TargetFrameworkRootPath>/usr/lib/mono/xbuild-frameworks/</TargetFrameworkRootPath>
</PropertyGroup>

Thanks to Nihal Talur for the TargetFrameworkRootPath advice.