Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Friday, April 6, 2018 5:55 PM | 3 votes
I'm using Visual Studio Community 2017. I'm trying to learn how to use C# with Xamarin to write apps. So I followed the tutorial that Microsoft directs you to use with a link within Visual Studio.
So I installed everything and followed the instructions (for the weather app tutorial) up to the point where it says to run a build to make sure there are no errors. But I keep getting the following error.
Error CS0656 Missing compiler required member 'Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo.Create'
In Core.cs code, the error involves the following bit of code. I get a red underline on the word "results" in the second line.
dynamic results = await DataService.getDataFromService(queryString).ConfigureAwait(false);
if (results ["weather"] != null)
I was wondering how to eliminate this error. I redid the tutorial from scratch, reloading and updating everything, including Visual Studio, but this error still pops up. Thanks.
dwigley
All replies (10)
Saturday, April 7, 2018 3:27 AM ✅Answered | 5 votes
Then add Reference by
Project-->Add Reference-->Browse Tab-->Browse-->Select dll file in dialog-->Check dll-->OK
Saturday, April 7, 2018 9:30 AM ✅Answered | 7 votes
Looks there are different flavours of weatherapp around
https://docs.microsoft.com/en-us/visualstudio/cross-platform/build-apps-with-native-ui-using-xamarin-in-visual-studio
https://github.com/MicrosoftDocs/visualstudio-docs/blob/master/docs/cross-platform/learn-app-building-basics-with-xamarin-forms-in-visual-studio.md
They have in common that one may add NuGet package Microsoft.CSharp:
"... install the Microsoft.CSharp package in the .NET Standard project. This library is necessary to use the C# dynamic data type in a .NET Standard library. ..."
With kind regards
Friday, April 6, 2018 6:07 PM | 13 votes
May This Help you
Add the reference to Microsoft.CSharp as
Project->add reference-->Framework-->Microsoft.CSharp
Saturday, April 7, 2018 2:08 AM | 1 vote
May This Help you
Add the reference to Microsoft.CSharp as
Project->add reference-->Framework-->Microsoft.CSharp
I have Project > Add Reference > Assemblies > Framework
But there is nothing there. It says, "No Framework assemblies were found on the machine."
But I found that I have a Microsoft.CSharp.dll under C:\Windows\WinSxS\...
Thanks.
dwigley
Sunday, April 8, 2018 12:48 AM
Thank you for the help.
dwigley
Friday, June 8, 2018 6:31 AM
Hello dwigley.
"Select dll file in dialog" refers to wich one file ? A lot of dll files appears when the "Browse" dialog is open, so which one I have to choose ?
Sunday, December 9, 2018 5:46 PM | 1 vote
Location of the <g class="gr_ gr_10 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling" data-gr-id="10" id="10">dll</g> would be C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\NETFramework\v4.6\Microsoft.CSharp.dll
Hope this would resolve the problem!
Wednesday, February 20, 2019 5:23 PM
Instead of searching for the right path you can edit your .csproj file adding this:
<PackageReference Include="Microsoft.CSharp" Version="4.5.0" />
I hope it helps :)
Tuesday, April 9, 2019 8:33 AM | 4 votes
Simply download the Microsoft.CSharp Nuget package and rebuild, it worked for me ;)
I'm using VS2017.
Tuesday, July 23, 2019 6:33 PM
Thanks .. its quick and best way to resolve such issue.
Amarjeet Verma