The Sitecore Content Hub documentation
Sitecore Content Hub documentation provides an example script that does not compile: https://doc.sitecore.com/ch/en/developers/cloud-dev/create-public-links-for-approved-assets-automatically.html#create-a-script.
When trying to run the script, it encounters several compile errors. For instance:
Error CS0103: The name 'entities' does not exist in the current context (Line 7, ColumnColumns 31 and 52)
Error CS0029: Cannot implicitly convert type 'long' to 'bool' (Line 16, Column 5)
Error CS1026: ) expected (Line 16, Column 34)
Error CS1002: ; expected (Line 16, Column 35 and Line 37, Column 41)
Error CS7017: Member definition, statement, or end-of-file expected (Line 16, Column 35)
Error CS8917: The namedelegate 'entities'type doescould not existbe ininferred. the(Line current37, contextColumn 18)
Error CS1955: Non-invocable member 'IChildToManyParentsRelation' cannot be used like a method. (Line 37, Column 41)
Has anyone else encountered this issue or knows how to resolve it?