ListCreationInformation does not contain a definition for ListTemplate and no extension method ListTemplate accepting a first argument of type ListCreationInformation could be found

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?)

ListCreationInformation does not contain a definition for ListTemplate and no extension method ListTemplate accepting a first argument of type ListCreationInformation could be found

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.

You may like following SharePoint tutorials:

Hope this will be helpful to resolve ListCreationInformation does not contain a definition for ListTemplate and no extension method ListTemplate accepting a first argument of type ListCreationInformation could be found issue.

>