public DirectoryPackageRepository Convert(ResolutionContext context) { DirectoryPackageRepositoryDto dto = context.SourceValue as DirectoryPackageRepositoryDto; Uri workinguri = new Uri(Directory.GetCurrentDirectory()); Uri pathuri = UriExtensions.GetFileUri(dto.PackageDir, workinguri.AbsolutePath); return(new DirectoryPackageRepository(dto.Name, pathuri.LocalPath)); }