The type or namespace does not exist

前端 未结 12 2091
心在旅途
心在旅途 2021-02-18 13:11

Ok, I have had this one a million times before and it\'s been answered 1 million +1 times before.

And yet, once again. I have 3 projects, A, B, and C, each a DLL. Each

12条回答
  •  悲&欢浪女
    2021-02-18 13:45

    In my case, I have to check where the "WorkFlow"1 was implemented. Hence, I compare the framework version of the projects/class libraries that uses this "WorkFlow". After check that all projects/class libraries uses the same framework, I have to search ".WorkFlow" in the project/class library that was causing the builing error.

    C:\Windows\Microsoft.NET\Framework\v4.0.30319\Workflow.Targets(121,5): error : The type or namespace name 'WorkFlow' no exists in the namespace 'Proyect_to_build' (are you missing a using directive or an assembly reference?)

    It turns out that the .dll that contains "WorkFlow" was missing in the "Reference" folder. Once added the .dll, the project/class library compiled successfully.

    Again, in my case, I wasn't using this .dll and I only need compile the project/class library for enable breakpoints in a certain part of the program (where "WorkFlow" is not involved at all), but well, after add it (the .dll with the "WorkFlow" source code), it compiled.


    1 "WorkFlow" comes from a legacy code using custom code for WorkFlows.

提交回复
热议问题