I'm trying to programmatically sort mods by version into separate folders. The problem I'm having is finding something within a given mod that shows what version of minecraft the mod was made for. The only document that I can find that does (META-INF\MANIFEST.MF) is very inconsistent in format.
For example:
The second example shows the mod version, but not what version of minecraft it's built for. Is there a better way to do this? How does Minecraft know when a mod wasn't made for the game version it's running?
If it helps, I am programming in vb.net.