Getting 'Program' already defines a member called 'Main' error

Sunil A M 171 Reputation points
2022-10-17T11:05:15.247+00:00

HI Team,

I have one winui3 app which we are building in my machine in Release mode.. but i getting the below errors.
251082-image.png

COuld you please help us to resolve this error.

Windows development Windows App SDK
Developer technologies C#
{count} votes

1 answer

Sort by: Most helpful
  1. Jeanine Zhang-MSFT 11,356 Reputation points Microsoft External Staff
    2022-10-18T02:00:30.357+00:00

    @Sunil A M

    According to the Docs:

    Compiler Error CS0111

    CS0111 occurs if a class contains two member declarations with the same name and parameter types.

    Compiler Error CS0101:

    A namespace has duplicate identifiers. Rename or delete one of the duplicate identifiers.

    Could you please provide the steps and the sample to help us reproduce the issue?

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.