.NET Compiler Upgrade for C# Code Blocks starting release Leapwork 2025.3.0

.NET Compiler Upgrade for C# Code Blocks starting release Leapwork 2025.3.0

This article will support in configuring C# block dependencies as per new update in Leapwork .Net framework 8 implemented in Leapwork release 2025.3.0.

Compilation and execution changes:

Previously all C# code in C# code block has been compiled using .NET Framework C# compiler. In .NET newest compiler is used instead of .NET Framework one. It means:

GAC Support Change in .NET 8:

With the introduction of GAC (Global Assembly Cache) NO support in .NET 8 builds, we are now disabling the ‘From GAC' option in the C# code editor window. Moving forward, assemblies can only be referenced using the 'From File' option.

Reason: GAC is Windows specific .NET Framework-based technology, meanwhile .NET is targeting to be cross-platform, and that’s why GAC is no more supported. Instead, nuget-package approach is used in .NET.

For any clarification, contact our Priority Support.