Since SharedPackageRepository .OpenPackage is not checking existence of path (unlike it's parent version LocalPackageRepository.OpenPackage) it will fail with System.IO.InvalidDataException.
Comments: Is there any specific use case that can lead to this method being called with a non-existent package id?
Comments: Is there any specific use case that can lead to this method being called with a non-existent package id?