コード例 #1
0
        private string DownloadItemToTemp(ExtendedItem extendedItem)
        {
            var dowloadService = this.projectCollection.GetService <VersionControlDownloadService>();
            var item           = _currentWorkspace.GetItem(extendedItem.ServerPath, ItemType.File, true);
            var filePath       = dowloadService.DownloadToTempWithName(item.ArtifactUri, item.ServerPath.ItemName);

            return(filePath);
        }