.NET Standard comes to the Xamarin.Forms project templates!

PierceBogganPierceBoggan USForum Administrator, Xamarin Team, Developer Group Leader Xamurai
edited November 13 in Xamarin Blog

You asked for it, now it's here! .NET Standard comes to the Xamarin.Forms project templates.

Give it a try and let us know what you think.

Feel free to discuss this post below.

Posts

  • DirkWilhelmDirkWilhelm USMember ✭✭✭
    edited November 10

    That link seems to be broken.

    Edit: link works now

  • AlessandroCaliaroAlessandroCaliaro ITMember ✭✭✭✭✭

    thanks @PierceBoggan.
    So:
    1- Is PCL finally dead?
    2- When will it be available in XF4MAC?

  • DirkWilhelmDirkWilhelm USMember ✭✭✭

    @PierceBoggan.

    i just tried the new template. In the iOS project the csproj contains the package reference to the newer 2.50-pre2 as expected, but there is still a packages.config created like this:

    <?xml version="1.0" encoding="utf-8"?>
    <packages>
      <package id="Xamarin.Forms" version="2.4.0.266-pre1" targetFramework="xamarinios10" />
    </packages>
    

    Additionally it would be nice if we could edit the android.csproj and ios.csproj in VS2017 without the need to unload the project, just the same as we can edit the netstandard.csproj

  • NickRandolphNickRandolph AUUniversity ✭✭
    edited November 10

    @PierceBoggan I noticed the same as @DirkWilhelm that the template is referencing a preview version of xamarin forms - was this intentional (I don't think this is good practice even for a template that's in preview)

    I'm still seeing that the Xamarin Forms libraries are still built as PCLs (even the preview build) - is this likely to change to be a true .NET Standard library any time soon?
    I'm judging this based on the assembly attributes. Currently it has:
    [assembly: TargetFramework(".NETPortable,Version=v4.5,Profile=Profile259", FrameworkDisplayName = ".NET Portable Subset")]

    A .NET Standard library should show something similar to
    [assembly: TargetFramework(".NETStandard,Version=v1.0", FrameworkDisplayName = "")]

  • MarkZhukovskyMarkZhukovsky USMember ✭✭

    Would anyone mind sharing the template .ZIP? Don't want to download preview of VS to get it. I'd like to modify for my purposes (and as part of that, change the nuget for XF that it points to to the latest stable instead, fyi @NickRandolph ).

    I second @DirkWillhelm 's nice to have of being able to edit the csproj files for the platform specific projects (UWP as well in addition to iOS and Android) within VS.

  • MonaHammadMonaHammad EGMember

    I updated VS on mac for the last version but I can't see the template available.

    Here is my VS version details:
    <br /> === Visual Studio Community 2017 for Mac (Preview) ===</p> <p>Version 7.3 Preview (7.3 build 764)<br /> Installation UUID: b1baa6df-4a4e-4028-a8eb-11788d695e04<br /> Runtime:<br /> Mono 5.4.1.7 (2017-06/e66d9abbb27) (64-bit)<br /> GTK+ 2.24.23 (Raleigh theme)</p> <pre><code>Package version: 504010007

    === NuGet ===

    Version: 4.3.1.4445

    === .NET Core ===

    Runtime: /usr/local/share/dotnet/dotnet
    Runtime Version: 2.0.0
    SDK: /usr/local/share/dotnet/sdk/2.0.0/Sdks
    SDK Version: 2.0.0
    MSBuild SDKs: /Library/Frameworks/Mono.framework/Versions/5.4.1/lib/mono/msbuild/15.0/bin/Sdks

    === Xamarin.Profiler ===

    Version: 1.6.0
    Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler

    === Xamarin.Android ===

    Version: 8.1.0.23 (Visual Studio Community)
    Android SDK: /Users/monahammad/Library/Android/sdk
    Supported Android versions:
    4.1 (API level 16)
    5.1 (API level 22)
    6.0 (API level 23)
    7.0 (API level 24)
    7.1 (API level 25)
    8.0 (API level 26)

    SDK Tools Version: 25.2.5
    SDK Platform Tools Version: 26.0.2
    SDK Build Tools Version: 25.0.3

    Java SDK: /usr
    java version "1.8.0_131"
    Java(TM) SE Runtime Environment (build 1.8.0_131-b11)
    Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)

    Android Designer EPL code available here:

    === Apple Developer Tools ===

    Xcode 9.1 (13532)
    Build 9B55

    === Xamarin.Mac ===

    Version: 4.0.0.214 (Visual Studio Community)

    === Xamarin.iOS ===

    Version: 11.4.0.214 (Visual Studio Community)
    Hash: c4240f3f
    Branch: d15-5
    Build date: 2017-11-08 17:28:18-0500

    === Xamarin Inspector ===

    Version: 1.4.0-beta1
    Hash: 2e30f47
    Branch: master
    Build date: Tue, 14 Nov 2017 22:32:31 GMT
    Client compatibility: 1

    === Build Information ===

    Release ID: 703000764
    Git revision: 54e0a0247ce488f81f6c7806c9bae93307e66c2b
    Build date: 2017-11-08 19:22:55-05
    Xamarin addins: 97c21309aa29fd2e7df52a5d7426f39a693ea318
    Build lane: monodevelop-lion-d15-5

    === Operating System ===

    Mac OS X 10.13.1
    Darwin 17.2.0 Darwin Kernel Version 17.2.0
    Fri Sep 29 18:27:05 PDT 2017
    root:xnu-4570.20.62~3/RELEASE_X86_64 x86_64

    === Enabled user installed addins ===

    Internet of Things (IoT) development (Preview) 7.1

Sign In or Register to comment.