The ‘versionDefines’ is useful if I want an assembly is active some feature when a specify package is installed.
It good to have the same support in PluginImporter.DefineConstraints. Provide an easy way to detect whether a packages installed to active this plugin.
What I mean for example I can add the following into PuginImporter(Aka MyURPExtension.dll.meta)
"versionDefines": [
{
"name": "com.unity.render-pipelines.universal",
"expression": "[7.7.1]",
}
],
Which means unity will only import this dll when current project has installed the URP package.
It not only IncludeInBuild, but also want the editor will not import this dll.