I have already have references to System and System.Data.
1.The type \'System.ComponentModel.IListSource\' is defined in an assembly that is not referenc
In my case I was getting error as
You must add a reference to assembly netstandard, Version=2.0.0.0
It was resolved by following steps
<ItemGroup>
<Reference Include="netstandard" />
</ItemGroup>
You need to add references to assemblies where there type are defines. To add reference to an assembly; right click on the Reference nodes under your project and select the assemblies node on the left tree and
System.dll
, which will show up as System on the right sideSystem.Data.dll
, which will show up as System.Data
on the right side