CalciumFramework / Samples

Samples demonstrate how to use some of the features of Codon.
3 stars 2 forks source link

Sample001 with NetStandard 2 #8

Open abrasat opened 6 years ago

abrasat commented 6 years ago

Could you please actualize the Sample001 for NetStandard 2 ? Thx.

abrasat commented 6 years ago

I updated the class library project to Netstandard 2. After changing the target of the UWP project to Windows 10 Fall Creators Update (Build 16299) the UWP project cannot be compiled anymore. The Android project works fine with the reference to the Netstandard 2 class library

DVaughan commented 6 years ago

You may want to check the uwp dependencies. https://github.com/dotnet/standard/issues/462 This doesn't appear to be an issue with Codon.

abrasat commented 6 years ago

I dont have this problem when creating new Xamarin.Forms projects (with target of the UWP project set to Windows 10 Fall Creators Update -Build 16299) referencing NetStandard 2 class libraries.

abrasat commented 6 years ago

I made some tests with Sample001. When the target of the UWP project is Windows 10 Fall Creators Update (Build 16299) and the referenced Sample001 class library was generated with Netstandard 1.4 as target framework it works fine. If the referenced Sample001 class library is generated with Netstandard 2.0 as target framework the UWP project cannot be compiled anymore.

KBakyc commented 5 years ago

abrasat, to support .Net Standard 2.0 in UWP, you must set not only the target version, but also the minimum version >= 16299.