The designer could not be shown for this file because none of the classes within it can be designed

后端 未结 11 2561
一个人的身影
一个人的身影 2020-12-09 14:53

We have the following shared component:

public class OurServiceBase : System.ServiceProcess.ServiceBase

This class has functionality we wan

11条回答
  •  情书的邮戳
    2020-12-09 15:18

    I had a solution with 2 projects (one referencing the other) and I had just set one to target .Net 4.5.2 and the other was targetting 4.5.

    Tip: view the warning messages in the Error List:

    There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "C:....dll", "x86". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project.

提交回复
热议问题