Skip to content

VB.NET 'Sub Main' was not found in 'AutoGeneratedProgram' #1778

Open
@A9G-Data-Droid

Description

@A9G-Data-Droid

I am not able to compile my project with the DragonFruit workflow. I have my Main with it's parameters and XML documentation. I did find the AutoGeneratedProgram in my obj folder. It does contain the signature Public Shared Async Function Main(args As String()) As Task(Of Integer)

However the vbc doesn't like it:

Error BC30420 'Sub Main' was not found in 'AutoGeneratedProgram'. vbc

I tried messing with the signature to be a Sub like the error said. I get the same error with this:

          Public Shared Sub Main(args As String())
            CommandLine.ExecuteAssembly(GetType(AutoGeneratedProgram).Assembly, args, "", Nothing, Nothing)
          End Sub

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions