, werent. , FeatureActivated ( ) , .
- ,
I.e.
FeatureActivated (
)
- Remove EventReceiver from your project.
- Add a new event received in your project (you can double check the name for changes)
- Paste the event code back into the event receiver.
I am using the following code to deploy using powershell
if(($Solution -ne $null) -and ($Solution.ContainsWebApplicationResource))
{
if ($FeatureScope -eq "Web")
{
Install-SPSolution $SolutionName -url $siteUrl -GACDeployment -Confirm:$false
}
else
{
Install-SPSolution $SolutionName -AllWebApplications -GACDeployment -Confirm:$false
}
}
else
{
Install-SPSolution $SolutionName -GACDeployment -Confirm:$false
}
while($Solution.Deployed-eq$false)
{
Start-Sleep 2
Write-Host "." -NoNewline
}
Mauro source
share