пʼятниця, 27 жовтня 2017 р.

tips and tricks :: VSCode and dotnetstandard libraries

If we use "dotnetstandard" libraries then VSCode may print some warnings:

Some projects have trouble loading. Please review the output for more details.

[warn]: OmniSharp.MSBuild.ProjectFile.ProjectFileInfo
        The primary reference "..." could not be resolved because it was built against the ".NETPortable,Version=v5.0" framework. This is a higher version than the currently targeted framework ".NETPortable,Version=v4.5,Profile=Profile111".

So the Droid project may have the disabled intellisense, because the PCL dll has not been built.

[fail]: OmniSharp.MSBuild.ProjectFile.ProjectFileInfo
        The "ResolveLibraryProjectImports" task failed unexpectedly.
System.IO.FileNotFoundException: Could not load assembly 'MyPCLProject, Version=0.0.0.0, Culture=neutral, PublicKeyToken='. Perhaps it doesn't exist in the Mono for Android profile?
File name: 'MyPCLProject.dll'

To avoid these warnings in VSCode we may run xbuild.sh or xfast.sh first before opening the VSCode.

It is not necessary if we work with the PCL files only.
And PCL project doesn't see these libraries anyway in VSCode.


четвер, 19 жовтня 2017 р.

warning :: 5.4.0 in the stable branch


Mono 5.4 is on the Stable branch now.

Mono 5.4.0.201 has not been tested with Xamarin Android,
but 5.4.0.199 have very serious issues with Xamarin Android,
so probably 5.4.0.201 will not work for Xamarin Android / Xamarin.Forms today.
Anyway it should be verified (maybe I will try it a bit later).

Please use this:
http://www.mono-project.com/docs/getting-started/install/linux/#accessing-older-releases

My settings:
deb http://download.mono-project.com/repo/debian stretch/snapshots/5.2.0.224 main