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 App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
730 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,363 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Jeanine Zhang-MSFT 9,186 Reputation points Microsoft Vendor
    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