protected virtual IPackageRepository CreateRepository(string path)
{
string root = PathUtility.EnsureTrailingSlash(FileSystem.Root);
string absolutePath = PathUtility.GetAbsolutePath(root, path);
string directory = Path.GetDirectoryName(absolutePath);
return new PackageReferenceRepository(new PhysicalFileSystem(directory), this);
}