Ticket T136472
Visible to All Users

Workflow - Avoid the 'Project already has a reference' compiler error that may occur in the standard WF designer when a project contains resource assemblies

created 11 years ago (modified 11 years ago)

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?

Comments (1)
DevExpress Support Team 11 years ago

    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

    Answers approved by DevExpress Support

    created 11 years ago (modified 10 years ago)

    We have implemented the functionality described in this ticket. It will be included in our next update(s).

    Please check back and leave a comment to this response to let us know whether or not this solution addresses your concerns.

    Additional information:

    By default, the standard rehosted WF designer throws an exception in this scenario. We decided to improve our WF integration so that our customers do not experience this WF specificity.
    We have integrated the solution approved on http://social.msdn.microsoft.com/Forums/en-US/ed7a2cce-9120-4299-b4df-3cd858149d67/ and starting with the next version, you can turn on filtering of resource assemblies via the static DevExpress.ExpressApp.Workflow.Win.WorkflowDesignerControlBase.CanFilterResourceAssemblyNamespaces property.

      Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

      Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.