Live Simulator throws Missing compiler required member 'Microsoft.CSharp.RuntimeBinder.....

JassimRahmaJassimRahma USMember ✭✭✭✭

Hi,

I am able to run my project on simulator with no issues but when I try Xamarin Live Simulator I get this error..

Bio.xaml: Missing compiler required member 'Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo.Create'
AppDelegate.cs: The type or namespace name 'App' could not be found
Kindly help..

Thanks,
Jassim

Answers

  • RodrigoCollaoRodrigoCollao USMember ✭✭

    Are you using PCL ?
    I am facing the The type or namespace name 'App' could not be found when migrating a just created xamarin forms pcl project to .net standard.
    If I change the .csproj and include the files and references there like on a PCL, then live player works for me, but after that it will not compile for simulator. So I can get to work either one or the other.

  • JassimRahmaJassimRahma USMember ✭✭✭✭

    that's a real pain!

  • RodrigoCollaoRodrigoCollao USMember ✭✭

    Could you confirm if you are using PCL, shared, or net standard...?

  • JassimRahmaJassimRahma USMember ✭✭✭✭

    I am using Xamarin Forms PCL

  • JamesMontemagnoJamesMontemagno USForum Administrator, Xamarin Team, Developer Group Leader Xamurai

    I just pushed out a new version (1.2.80) to google play which now supports .NET Standard project types.

    For iOS the Test Flight Fast Ring version supports it as well.

  • JassimRahmaJassimRahma USMember ✭✭✭✭

    @JamesMontemagno said:
    I just pushed out a new version (1.2.80) to google play which now supports .NET Standard project types.

    For iOS the Test Flight Fast Ring version supports it as well.

    How can I get the Test Flight Fast version?

    The one I have in Test Flight is version 1.2.76

  • JamesMontemagnoJamesMontemagno USForum Administrator, Xamarin Team, Developer Group Leader Xamurai

    That is correct and the latest version.

  • JassimRahmaJassimRahma USMember ✭✭✭✭

    but this version is still having the same error:

    Missing compiler required member 'Microsoft.CSharp.RuntimeBinder

    I just tried it...

  • JamesMontemagnoJamesMontemagno USForum Administrator, Xamarin Team, Developer Group Leader Xamurai

    Please open a bug and attach the sample as I tried out a few here and was working just fine, but I have no idea what nugets you are using.

  • JamesMontemagnoJamesMontemagno USForum Administrator, Xamarin Team, Developer Group Leader Xamurai

    Are you also running VS 2017 15.5 Preview?

  • JassimRahmaJassimRahma USMember ✭✭✭✭

    I am using Visual Studio for Mac

    Visual Studio Community 2017 for Mac
    Version 7.2.2 (build 11)
    Installation UUID: 92b35814-b430-4a35-9d6a-c252e9ae484f
    Runtime:
    Mono 5.4.1.6 (2017-06/1f4613aa1ac) (64-bit)
    GTK+ 2.24.23 (Raleigh theme)

    Package version: 504010006

    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.5.6
    Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler

    Apple Developer Tools
    Xcode 9.1 (13532)
    Build 9B55

    Xamarin.iOS
    Version: 11.3.0.47 (Visual Studio Community)
    Hash: 51128b8c
    Branch: xcode9.1
    Build date: 2017-10-31 22:42:13-0400

    Xamarin.Android
    Version: 8.0.2.1 (Visual Studio Community)
    Android SDK: /Users/jassim/Library/Developer/Xamarin/android-sdk-macosx
    Supported Android versions:
    4.0.3 (API level 15)
    4.1 (API level 16)
    4.2 (API level 17)
    4.3 (API level 18)
    4.4 (API level 19)
    4.4.87 (API level 20)
    5.0 (API level 21)
    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:
    https://github.com/xamarin/AndroidDesigner.EPL

    Xamarin.Mac
    Version: 3.8.1.0 (Visual Studio Community)

    Xamarin Inspector
    Version: 1.3.2
    Hash: 461f09a
    Branch: 1.3-release
    Build date: Tue, 03 Oct 2017 18:26:57 GMT
    Client compatibility: 1

    Build Information
    Release ID: 702020011
    Git revision: b604c37c5a4a2f0919b45ffbe2aaad9fe040af31
    Build date: 2017-11-01 08:31:43-04
    Xamarin addins: d57dc14cbd4eb166ee62bab585965ab78d3650bc
    Build lane: monodevelop-lion-d15-4

    Operating System
    Mac OS X 10.13.0
    Darwin 17.0.0 Darwin Kernel Version 17.0.0
    Thu Aug 24 21:48:19 PDT 2017
    root:xnu-4570.1.46~2/RELEASE_X86_64 x86_64

  • biaparbiapar ITMember ✭✭✭

    @JassimRahma said:
    but this version is still having the same error:

    Missing compiler required member 'Microsoft.CSharp.RuntimeBinder

    I just tried it...

    I've the same problem.
    How to solve?

  • GillieGillie NLMember
    edited February 2018

    @biapar said:

    @JassimRahma said:
    but this version is still having the same error:

    Missing compiler required member 'Microsoft.CSharp.RuntimeBinder

    I just tried it...

    I've the same problem.
    How to solve?

    I solved the problem by installing the Microsoft.CSharp package from the NuGet package store. Simply install the package for the project where that error occurs and add the following to the file: using Microsoft.CSharp; That way (as far as I know), the compiler can be found.

  • biaparbiapar ITMember ✭✭✭

    @Gillie said:

    @biapar said:

    @JassimRahma said:
    but this version is still having the same error:

    Missing compiler required member 'Microsoft.CSharp.RuntimeBinder

    I just tried it...

    I've the same problem.
    How to solve?

    I solved the problem by installing the Microsoft.CSharp package from the NuGet package store. Simply install the package for the project where that error occurs.

    Why?

  • GillieGillie NLMember

    @biapar said:

    @Gillie said:

    @biapar said:

    @JassimRahma said:
    but this version is still having the same error:

    Missing compiler required member 'Microsoft.CSharp.RuntimeBinder

    I just tried it...

    I've the same problem.
    How to solve?

    I solved the problem by installing the Microsoft.CSharp package from the NuGet package store. Simply install the package for the project where that error occurs.

    Why?

    The current project probably doesn't have a reference to the Microsoft CSharp package. You can also add a reference to that compiler if it's already in one of the other projects. To do that, right click on the project where that error occurs, go to add and select reference. Under Assemblies, left on the new window opened, you can find the Microsoft CSharp reference.

  • biaparbiapar ITMember ✭✭✭

    Hi, with Visual Studio under MAC, it works without install anythings.

  • JamesMontemagnoJamesMontemagno USForum Administrator, Xamarin Team, Developer Group Leader Xamurai

    With the latest builds that we have submitted in the last week this should not be an issue. If it is please open a bug with a repro sample for me to test out.

Sign In or Register to comment.