In this post, we will discuss how we can resolve the below issue which comes when we were trying to create a SharePoint list from a custom list template using (c#.net) .net managed object model code.
But we got the below error in the below line:
listCreationInfo.ListTemplate = listTemplate;
The error comes as:
‘ListCreationInformation’ does not contain a definition for ‘ListTemplate’ and no extension method ‘ListTemplate’ accepting a first argument of type ‘ListCreationInformation’ could be found (are you missing a using directive or an assembly reference?)
The solution is to use the updated dll (Microsoft.SharePoint.Client.dll).
Here I have used the 16.1.6420.1200 version of Microsoft.SharePoint.Client.dll.
Hope this will be helpful.
SharePoint Online FREE Training
JOIN a FREE SharePoint Video Course (3 Part Video Series)