Troubleshooting and Limitations - Programming

Framework 4.5 for .NET scripts

Issue: Running a .NET script recorded in VuGen, fails if you run it in Visual Studio—cannot find associated DLL.

Steps to Resolve: If the script was recorded with a .NET 4.5 AUT, rebuild the script with Framework version 4.5 in Visual Studio.

Back to top

Framework 3.5 for .NET scripts

Issue: .NET DLLs created in Visual Studio using Framework 3.5 may not run.

Steps to Resolve: Add the following to the <app>.config file: (if there is no such file, create one)

<configuration>

   <startup>

      <supportedRuntime version="v4.0" />

     </startup>

</configuration>

Back to top

Missing references for scripts created in Visual Studio

Issue: A compilation error occurs (such as error CS0246 or warning MSB3644) when compiling scripts created in Visual Studio, possibly because the referenced assemblies were not added correctly to Script.csproj.

Steps to Resolve:

  • If Visual Studio is installed:
    1. Open the script solution file in Visual Studio.
    2. In the Solution Explorer, click References and select Add Reference from the right-click menu.
    3. Save the solution, close Visual Studio, and reopen the script in VuGen.
  • If Visual Studio is not installed:
    1. Open the script.csproj file in a text editor.

    2. In the ItemGroup element, add an Include statement for your reference as follows:

      <Reference Include="ICSharpCode.SharpZipLib">

      <HintPath>C:\xxxx\ICSharpCode.SharpZipLib.dll</HintPath>

      </Reference>

    3. Save the file, close the editor, and reopen the script in VuGen.

Back to top