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.


Download: Visual Studio 2012 Update 3 

1 comment:

  1. Thanks for the post. It solved the issue, i would like to share the below code with you

    SupportedTrustLevels="All" SupportedDeploymentScopes="Web, Site, WebApplication, Farm, Package"

    The above line consists of all the attributes under SupportedDeploymentScopes.