Can someone explain Community Script Hook V .NET 2 versus 3
-
I have both installed but in the dozens of fully functional scripts I've created myself I've never referenced 3, only 2.
At one point i did reference 3 as well as 2 and the compiler spewed out errors...i think it was ambiguous errors.
Recently I just downloaded a sample project from Github and was surprised it only referenced 3.
Can someone clarify the differences between both dlls?
Thanks
-
This post is deleted!
-
v2 is just tagging along these days and the API doesn't get updated anymore, just fixed when broken.
v3 is the main branch and has new featuresOnly reference one - and I'd say just reference v3, as there's no real reason to stay on v2 unless you're maintaining a large, older script.
-
@ikt Thank you. I had noticed, looking at the .xml files, that V2 just seemed to be a subset of V3. The former having about 16K lines, the latter about 22K lines.
What's confusing is why crosire still packages both in the same zip? And in the Version 3 changes, they wrote "Fixed file version information for ScriptHookVDotNet2.dll".
Very strange, I guess as you wrote it's just for legacy scripts. Do we even need to have 2 installed?Either way, I'm going to change my references to V3 going forward, none of my scripts are older than 2 or 3 months.
-
ScriptHookVDotNet runs both v2 and v3 scripts to keep old scripts working.