Tuesday, February 23, 2016

The partial project item type does not have a value for this property. Visual Studio 2012 & SharePoint

Hi There,

I am building a custom master page for SharePoint branding and noticed that my Visual Studio 2012 shows a red cross sign on the master page module. As soon as deploy the solution, it throws the error below.

Error: The partial project item type does not have a value for this property.


Thanks to Muhammad Tayyab Khan for writing this post. It solved my problem.

Solution was very simple.


Modified the "SharePointProjectItem.spdata" on which module its showing red cross sign to  added the value SupportedTrustLevels="All"  SupportedDeploymentScopes="Web, Site"   in the <ProjectItem>.

It will look like below.


Redeploy the solution. It worked for me and no more error.

Update (02/29/2016):
Although it fixed my error but the Red Cross icon was still showing on adding SharePoint item in the solution. I installed Visual Studio update 3 and it fixed my problem.

https://social.msdn.microsoft.com/Forums/office/en-US/dd7f20ad-2f27-48dc-93d2-fc715689c4dd/visual-studio-2012-sharepoint-project-error-the-partial-project-item-type-does-not-have-a-value?forum=sharepointdevelopment

Download: Visual Studio 2012 Update 3 

No comments:

Post a Comment