Hey does anyone know what I need to use
# package-development
n
Hey does anyone know what I need to use instead of
IManifestFilter
if I want to register the version and packageName of my package in v14? (I don't include any HTML, CSS or JS in my package)
a
I haven't really looked much at V14 yet, but I'm fairly certain HQ has communicated that this won't be possible for V14. :large-sad-face: IIRC it was mentioned that this could potentially be added later, but without any certainty or timeframe.
h
yes, can't register packages in code in 14
w
Yep you will need an umbraco-package.json file
That will have the info in it
And if your using an RCL it can then just get served from wwwroot RCL for App_Plugins/NiksPackage/umbraco-package.json
s
Anyone knows how it gets package stats for telemetry data then?
w
🤷‍♂️ one for @Jacob Overgaard or @Ronald Barendse
j
We still have the
PackageManifestService
which uses
IPackageManifestReader
readers of which we have a few registered in the core: https://cdn.discordapp.com/attachments/1247905511416795168/1248252112694149180/image.png?ex=6662fcdf&is=6661ab5f&hm=ab9aa08bf2e5e73a44c378b4420d2e25757b4f377ca00040438f297ba6f02994&
so you could set up your own IPackageManifestReader if you wanted to
the interface isn't too big:
Copy code
public interface IPackageManifestReader
{
    Task<IEnumerable<PackageManifest>> ReadPackageManifestsAsync();
}
s
So it just reads package manifests from umbraco-package.json files on the disk?
j
yeah, just like the old backoffice did with package.manifest files
s
Cool - I might do a feature request for a C# way of registering, eg. for a package that only has C# in it (like https://marketplace.umbraco.com/package/umbraco.community.imagesharpremoteimages), it doesn't make sense to require a static file containing the info.
j
sounds good
34 Views