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

Sunil A M 171 Reputation points

HI Team,

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

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
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

    @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