Setting up defaultRunDotNetScriptReferences
6 min
when a migrated pad flow contains net scripts, pad requires the referenced assemblies to be explicitly declared blueprint uses the %defaultrundotnetscriptreferences% variable in init variables to point pad to the correct assembly location ⓘ if you're resolving a specific missing assembly — for asenumerable support docid\ e 1hmko5sslwvynczba8 or xmldocument support docid\ klextgqixekax 0e boef — see those articles for targeted steps this article covers the general setup recommended setup install the net developer pack installing the full net developer pack is the most robust approach it covers all assembly references your migrated flows may need — now and in future migrations download the net 4 7 2 developer pack from microsoft run the installer — assemblies are installed to c \program files (x86)\reference assemblies in that folder, delete or move the system enterpriseservices files — pad cannot load these and will throw a runtime error if they are present in init variables , set %defaultrundotnetscriptreferences% to c \program files (x86)\reference assemblies\microsoft\framework netframework\v4 7 2 in init variables , set %defaultrundotnetscriptimports% to include whichever namespaces your scripts require understanding blueprint generated net scripts blueprint generates custom net scripts during migration to replicate uipath functionality that has no direct pad equivalent common cases include complex string manipulation advanced data structure handling screenshot or image processing custom logic blocks each generated script includes a description comment at the top identifying its purpose, the original uipath activity it replaces, and its required input/output variables example // description this script replicates the behavior of uipath's "take screenshot" activity // inputs windowhandle// output imagepath review these descriptions to understand each script's role before modifying any logic automatic namespace assignment (v8 3+) blueprint automatically assigns the required net namespaces to %defaultrundotnetscriptimports% per xaml file during migration each migrated file receives only the namespaces its scripts actually use — reducing manual configuration and the risk of missing imports at runtime example // %defaultrundotnetscriptimports% =// system,// system linq,// system collections generic this value varies per xaml file depending on script content you no longer need to define all namespaces globally