Known issues for programming
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>
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:
- Open the script solution file in Visual Studio.
- In the Solution Explorer, click References and select Add Reference from the right-click menu.
- Save the solution, close Visual Studio, and reopen the script in VuGen.
- If Visual Studio is not installed:
-
Open the script.csproj file in a text editor.
-
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>
-
Save the file, close the editor, and reopen the script in VuGen.
See also: