Has more than one entry point defined error

后端 未结 2 835
情话喂你
情话喂你 2021-01-24 17:07

I have the following code:

namespace WpfApplication2
{
    /// 
    /// Interaction logic for MainWindow.xaml
    /// 
    public p         


        
2条回答
  •  醉梦人生
    2021-01-24 17:52

    In order to solve this error, don't change the name of the .cs file when creating new code.

    If you want a new name for your .cs file then you have to delete everything in the folder where your project is i.e., the fragments of files (bin, obj folders, etc.).

提交回复
热议问题