I am getting “defined in an assembly that is not referenced” errors when building my c# project, how to solve it?

后端 未结 2 1759
挽巷
挽巷 2021-01-29 09:48

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

2条回答
  •  花落未央
    2021-01-29 10:18

    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

    1. add reference to System.dll, which will show up as System on the right side
    2. add reference to System.Data.dll, which will show up as System.Data on the right side

提交回复
热议问题