I'm a total noob in Sharepoint Development, but I'm quite skilled in .NET.
I need to deploy a ready-to-go website from two .wsp files:
- App.wsp
- AppEmployeeService.wsp
I suppose that Lists
and other structures should be already present in these .wsp
archives.
I got a command-line guide on how to import that and deploy:
• iisreset
• Add-SPSolution -LiteralPath "C:\App.wsp"
• Install-SPSolution -Identity "App.wsp" -WebApplication
"http://10.1.1.140" –GACDeployment
• Add-SPSolution -LiteralPath "C:\AppEmployeeService.wsp"
• Install-SPSolution -Identity "AppEmployeeService.wsp" -GACDeployment
• Enable-SPFeature –Identity APP_APP_Feature –url
"http://10.1.1.140”
• Disable-SPFeature –Identity "APP_APP_Feature" –url
http://10.1.1.140 –force
• Enable-SPFeature –Identity "APP_APP_Feature" –url
http://10.1.1.140 –force
• iisreset
But when I run
Enable-SPFeature –Identity APP_APP_Feature –url "http://10.1.1.140"
I get an exception:
Enable-SPFeature: List 'Employees' does not exist at site with URL 'http://10.1.1.140'
How does it work? Shouldn't it create these lists during import?