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

PierceBogganPierceBoggan USForum Administrator, Xamarin Team, Developer Group Leader Xamurai
edited November 2017 in General

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.


  • DirkWilhelmDirkWilhelm USMember ✭✭✭✭
    edited November 2017

    That link seems to be broken.

    Edit: link works now

  • AlessandroCaliaroAlessandroCaliaro ITMember ✭✭✭✭✭

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

  • DirkWilhelmDirkWilhelm USMember ✭✭✭✭


    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"?>
      <package id="Xamarin.Forms" version="" targetFramework="xamarinios10" />

    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 2017

    @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:

    === Visual Studio Community 2017 for Mac (Preview) ===

    Version 7.3 Preview (7.3 build 764)
    Installation UUID: b1baa6df-4a4e-4028-a8eb-11788d695e04
    Mono (2017-06/e66d9abbb27) (64-bit)
    GTK+ 2.24.23 (Raleigh theme)

    Package version: 504010007

    === NuGet ===


    === .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: (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: (Visual Studio Community)

    === Xamarin.iOS ===

    Version: (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

  • halcyon1234halcyon1234 CAMember

    Can you PLEASE update the documentation in developer dot xamarin dot com /guides/xamarin-forms/getting-started/hello-xamarin-forms/quickstart/

    It still says File -> New Project -> C# -> Cross Platform -> (Xamarin.Forms or Native)

    But this blog post seems to imply that's not an option anymore and now it is just Cross-Platform App (Xamarin.Forms)

    I wasted so much time trying to figure out why my new install of VS2017 wasn't seeing what the documentation was telling me it should see. So. Much. Time.

  • sjorsmiltenburgsjorsmiltenburg USMember ✭✭

    Hi, Yesterday evening update 15.5.2 came out for Visual Studio and this contained the new project templates

    I'm doing the following:

    • File - new project
    • cross-platform - Cross-Platform App (Xamarin.Forms) (create new dir for solution)
    • on selecting the template I choose All platforms (android / ios / upw), Xamarin.Forms and .Net Standard
    • on the bottom in the status bar it says "creating project 'App3'... project creation successful."
    • the solution that is displayed in my solution explorer is completely empty (no projects under here)

    even if I add new project to this newly created solution and pick PCL instead of .net standard I still get no projects under my solution. The filesystem is completely empty with the exception of the .sln file.

    Adding an other type of project under this solution (.net standard class library for instance) does create the expected project.

    What kind of bug am I looking at here?

  • sjorsmiltenburgsjorsmiltenburg USMember ✭✭

    hmm I read on the forum that re-installing the xamarin sdk from the visual studio installer would fix this, and it did.
    Wonder what else this re-install fixed

  • swoswo USMember ✭✭


    I like .Net Standard.

    But I cannot use .Net Standard because the target windows platform is 15063 and UWP using .Net Standard need 16xxx. Currently it is not possible to update the target computers. Hoe can I create an PCL project like before ?


  • biaparbiapar ITMember ✭✭✭

    There is not .NET Standard mode into Visual Studio for MAC.

  • sutphinwbsutphinwb Member ✭✭

    The disconnect between the template update and documentation is horrendous. If you're just learning and go to youtube or even Xamarin university, it is truly confusing to get started. So much time is wasted just getting the environment set up and the emulators working it becomes a turnoff. If you want new people switching to this environment you need a clear path to get started. I don't mind change, as long as the reasoning is explained and the path to follow is clear.

Sign In or Register to comment.