Missing compiler required member
- Dominant language
- PowerShell
- Stars
- 22k
- Forks
- 4.9k
- Avg merge
- 5d 5h
- Merged PRs (30d)
- 29
Description
First of all I'm not sure if this is the right place to post this kind of issue.
I've a compiler error after introducing a method with a `dynamic object` as parameter. The error is the following:
`error CS0656: Missing compiler required member 'Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo.Create'`.
The project target is: **netstandard2.0.** And it'is a **classlib**.
I made some research, but it's not solved by adding a reference to `Microsoft.CSharp`.
I can't share the code since it's not an _OSS project_. I was not able to reproduce it outside the original project.
Anyway the code layout is similar to the following:
```csharp
class MyType
{
public async Task MyMethodAsync()
{
await MyNestedMethodAsync();
async Task MyNestedMethodAsync()
{
var data = new {
numberField = 0,
stringField = ""
};
await MyNestedMethodWithDynamicAsync(data);
}
async Task MyNestedMethodWithDynamicAsync(dynamic input)
{
}
}
}
```
Regards,
Giacomo S. S.
Contributor guide
Assessment
This issue has not been assessed yet.