I've added a simple class to use its static method in the WriteLine activity:
C#public class Class1 {
public static string Method1() { return "Hello"; }
}
and can successfully specify the 'DesignerRehosting_WinForms_Lib.Class1.Method1' expression in a WriteLine activity at runtime.
However, the 'Project already has a reference' compiler error occurs in WWF designer if I add several languages in ModelEditor and specify this expression at runtime:
Would you please clarify how to manage this error?
This is a specificity of the Workflow Designer: this error occurs in Workflow Designer when it is shown in a simple WindowsForms application with several culture specific assemblies. I created a simple application to demonstrate this specificity, see the attached file. We will see whether it is possible to improve this behavior, though I cannot promise any time frame. For more details, see The 'Project already has a reference' compiler error occurs in WWF designer for VB expression when resource assemblies are loaded at social.msdn.microsoft.com