This project is read-only.

ResourceDefinition.SetVersion: what is it really for?

Topics: Core
Feb 14, 2013 at 8:45 AM
What's the main purpose of setting the resource version in IResourceManifestProvider?
How is Orchard work with it?
Should it be the version of a script itself or of a module?
Feb 14, 2013 at 11:52 AM
It's used by Orchard when it is time to render a resource referenced by its name. Orchard will sort all found resources that match the name by their version and render the first one. It should be the version of the resource itself, not the version of the module. Unless you created your own resources and want to keep their version number equal to the version of the module, but I don't think that's a typical scenario.
Feb 14, 2013 at 12:01 PM
Perfect, thank you.