Dynamo 2.12 custom package load failure

Hi guys,

As of Dynamo 2.12 I’m having trouble with getting our custom ZT and NM packages to run. I get the following message:

Dynamo.Exceptions.LibraryLoadFailedException: Failed to load library: C:\Users\vantelgm7702\AppData\Roaming\Dynamo\Dynamo Core\2.12\packages\DynamoNMN
   at Dynamo.PackageManager.PackageLoader.CheckAndGetPackageVersion(String version, String name, String directory)
   at Dynamo.PackageManager.PackageLoader.ScanPackageDirectory(String directory, Boolean checkCertificates)

Failed to load library: C:\Users\vantelgm7702\AppData\Roaming\Dynamo\Dynamo Core\2.12\packages\DynamoNMN

And under ‘Show details’:

The version of the package called DynamoNMN found at C:\Users\vantelgm7702\AppData\Roaming\Dynamo\Dynamo Core\2.12\packages\DynamoNMN is invalid (version: “1.0”). Ignoring it

image

Could this have to do with some incorrect setting in my pkg.json files? Or is something else happening?

My pkg.json looks like this:

{
  "license": "",
  "file_hash": null,
  "name": "DynamoNMN",
  "version": "1.0",
  "description": "ArcadisAutomation Dynamo Package Windloadgenerator",
  "group": "",
  "keywords": null,
  "dependencies": [],
  "contents": "",
  "engine_version": "2.0",
  "engine": "dynamo",
  "engine_metadata": "",
  "site_url": "https://www.linkedin.com/in/michael-van-telgen/",
  "repository_url": "",
  "contains_binaries": true,
  "node_libraries": [
    "DynamoNMN, Version=1.0, Culture=neutral, PublicKeyToken=null",
    "DynamoNMN.Functions, Version=1.0, Culture=neutral, PublicKeyToken=null"
  ]
}

Does anyone know what to do?

Thanks again!!
Michael

Oof, found the problem. I should set the version in the pkg.json to:

Version=1.0.0.0

Now it works (with that format - I think you can use any numbers you need).

Hope it helps someone. :slight_smile: