Skip to content

Commit eafb835

Browse files
committed
Fixed a bug where sandboxed solution could not be uploaded to root site collection
1 parent 189a58e commit eafb835

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sherpa.Library/Deploy/DeployManager.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,8 @@ private DesignPackageInfo GetPackageInfoWithFirstAvailableMinorVersion(ClientCon
164164
var newVersionPackageInfo = GetPackageInfo(nameOfPackage, majorVersion, minorVersion);
165165

166166
var nameInSolutionGallery = GetFileNameFromPackageInfo(newVersionPackageInfo);
167-
var fileInSolutionGallery =
168-
context.Web.GetFileByServerRelativeUrl(context.Site.ServerRelativeUrl + "/_catalogs/solutions/" + nameInSolutionGallery);
167+
var serverRelativeUri = UriUtilities.CombineServerRelativeUri(context.Site.ServerRelativeUrl, "/_catalogs/solutions/", nameInSolutionGallery);
168+
var fileInSolutionGallery = context.Web.GetFileByServerRelativeUrl(serverRelativeUri);
169169
context.Load(fileInSolutionGallery, f => f.Exists);
170170
context.ExecuteQuery();
171171

0 commit comments

Comments
 (0)