Setting up defaultRunDotNetScriptReferences
If your migrated PAD flow uses .NET scripts that requires loaded .dll references, in PAD we have to explicitly reference the required assemblies.
Our strong recommendation is to download the standard .NET developer pack directly from Microsoft which includes all .NET assemblies. This will resolve any potential future missing references (For example. Taking screenshots from UiPath)
Steps to follow:
- Download .NET dev pack: https://dotnet.microsoft.com/en-us/download/dotnet-framework/thank-you/net472-developer-pack-offline-installer
- This will install .NET assemblies to C:\Program Files (x86)\Reference Assemblies\
- Delete or move System.EnterpriseServices files from assembly folder as PAD is unable to load these files.
- 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 whatever .NET script imports/namespace your scripts require.