CommunicationSiteCollectionCreationInformation class in OfficeDevPnP.Core.Sites

%3CLINGO-SUB%20id%3D%22lingo-sub-221853%22%20slang%3D%22en-US%22%3ECommunicationSiteCollectionCreationInformation%20class%20in%20OfficeDevPnP.Core.Sites%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-221853%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20All%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20console%20application.%20I%20am%20referencing%20the%20library%20%22OfficeDevPnP.Core%22.%20I%20updated%20the%20latest%20package%20using%20NuGet%20manager.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ELatest%20assembly%20version%20is%202.28.1807.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAs%20soon%20as%20I%20updated%20latest%20package%20I%20am%20getting%20following%20error%20-%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3E%22Error%26nbsp%3B%26nbsp%3B%20%26nbsp%3BCS0012%26nbsp%3B%26nbsp%3B%20%26nbsp%3BThe%20type%20'CommunicationSiteCollectionCreationInformation'%20is%20defined%20in%20an%20assembly%20that%20is%20not%20referenced.%20You%20must%20add%20a%20reference%20to%20assembly%20'OfficeDevPnP.Core%2C%20Version%3D2.20.1711.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D3751622786b357c2'.%22%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%20here%20I%20am%20not%20getting%20the%20'%3CSTRONG%3ECommunicationSiteCollectionCreationInformation%3C%2FSTRONG%3E'%20class.%20I%20updated%20the%20previous%20version%20'%3CSTRONG%3E2.20.1711.0%3C%2FSTRONG%3E'%20its%20start%20working.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EQuestion%20is%20-%20%3CSTRONG%3EIs%20this%20class%20deprecated%3F%20what%20is%20there%20in%20latest%20version%20for%20the%20same%3F%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFollowing%20are%20some%20snaps%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%3E%3CSPAN%20class%3D%22lia-message-image-wrapper%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F38477i3671868564C2FF02%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22latest%20version%20of%20SharePointPnPCoreOnline.png%22%20title%3D%22latest%20version%20of%20SharePointPnPCoreOnline.png%22%20border%3D%220%22%20%2F%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20!%3C%2FP%3E%3CP%3EBr%2C%3C%2FP%3E%3CP%3EPrasham%20Sabadra%3C%2FP%3E%3CP%3E%3CA%20title%3D%22https%3A%2F%2Fknowledge-junction.com%2Fcategory%2Ftechnology-articles%2Foffice-365%2F%22%20href%3D%22https%3A%2F%2Fknowledge-junction.com%2Fcategory%2Ftechnology-articles%2Foffice-365%2F%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fknowledge-junction.com%2Fcategory%2Ftechnology-articles%2Foffice-365%2F%20%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-221853%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Highlighted
Occasional Contributor

Hi All,

 

I have console application. I am referencing the library "OfficeDevPnP.Core". I updated the latest package using NuGet manager.

 

Latest assembly version is 2.28.1807.

 

As soon as I updated latest package I am getting following error -

 

"Error    CS0012    The type 'CommunicationSiteCollectionCreationInformation' is defined in an assembly that is not referenced. You must add a reference to assembly 'OfficeDevPnP.Core, Version=2.20.1711.0, Culture=neutral, PublicKeyToken=3751622786b357c2'."

 

So here I am not getting the 'CommunicationSiteCollectionCreationInformation' class. I updated the previous version '2.20.1711.0' its start working.

 

Question is - Is this class deprecated? what is there in latest version for the same?

 

Following are some snaps:

latest version of SharePointPnPCoreOnline.png

 

Thanks !

Br,

Prasham Sabadra

https://knowledge-junction.com/category/technology-articles/office-365/

1 Reply
Highlighted

@Prasham Sabadra 

I got the similar issue. This is not the case, in latest release Microsoft depreciated that feature.

 

Once we update the NuGet package for particular project, We must ensure that all dependent /refereed project/DLL in your solution updated to latest package.

 

Issue comes when we update the NuGet package for current project but not for the referred DLL.