I have created a Wsp for List definition and I want to install list
definition to a particular site collection.
So when deploying the package I use following command where url is
passed as parameter (http://localhost:portnumber)
stsadm -o deploysolution -name %solutionName%.wsp -immediate
-allowgacdeployment -allowCasPolicies -url %url% -force
but it gives me a error saying
This solution contains no resources scoped for a Web application and
cannot be deployed to a particular Web application.
I have searched google and the workaround was to remove url part from
above command, when I do that it works fine, but its installs globally,
which I want to avoid.
I want it to be installed on a perticulart site collection.
I tried deploying package through central admin but here It says
solution Deploys globally.
How to deploy list definition it to a particular site collection?
Solution File xml
<?xml version="1.0" encoding="utf-8" ?>
<Solution xmlns="http://schemas.microsoft.com/sharepoint/"
SolutionId="F3709C7D-5E28-490b-8C96-7F6B425AA96B"
DeploymentServerType="WebFrontEnd"
ResetWebServer="FALSE">
<FeatureManifests>
<FeatureManifest Location="HYSCaseStudyMasterfeature.xml"/>
</FeatureManifests>
<TemplateFiles>
<TemplateFile
Location="HYSCaseStudyMasterHYSCaseStudyMasterListTemplateAllItems.asp
x"/>
<TemplateFile
Location="HYSCaseStudyMasterHYSCaseStudyMasterListTemplateDispForm.asp
x"/>
<TemplateFile
Location="HYSCaseStudyMasterHYSCaseStudyMasterListTemplateEditForm.asp
x"/>
<TemplateFile
Location="HYSCaseStudyMasterHYSCaseStudyMasterListTemplateListDefiniti
on.xml"/>
<TemplateFile
Location="HYSCaseStudyMasterHYSCaseStudyMasterListTemplateNewForm.aspx
"/>
<TemplateFile
Location="HYSCaseStudyMasterHYSCaseStudyMasterListTemplate chema.xml"/
>
</TemplateFiles>
Feature file XML
<?xml version="1.0" encoding="utf-8"?>
<Feature Id="7B5C9471-FCB6-4b2a-BBFE-44711B5B47EF"
Title="HYSCaseStudyMaster"
Scope="Site" Description="Feature for
creating HYS Case Study Master List."
Version="1.0.0.0"
Hidden="FALSE"
xmlns="http://schemas.microsoft.com/sharepoint/"
>
<ElementManifests>
<ElementManifest
Location="HYSCaseStudyMasterListTemplateListDefinition.xml" />
<ElementFile Location="HYSCaseStudyMasterListTemplate chema.xml" />
<ElementFile Location="HYSCaseStudyMasterListTemplateAllItems.aspx"
/>
<ElementFile Location="HYSCaseStudyMasterListTemplateDispForm.aspx"
/>
<ElementFile Location="HYSCaseStudyMasterListTemplateEditForm.aspx"
/>
<ElementFile Location="HYSCaseStudyMasterListTemplateNewForm.aspx"
/>
</ElementManifests>
</Feature>
Do you know someone who can help? Share a link to this thread on twitter, or facebook.