SPSolution.SolutionFile Property
Returns the file associated with the solution.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Property Value
Type: Microsoft.SharePoint.Administration.SPPersistedFileAn SPPersistedFileobject that represents the solution file.
The name of the solution is set to the filename when you first add the solution to the store. If you subsequently upgrade the solution with a different file, the SolutionFile property gets updated but the Name property remains the same.