My project does not start because it cannot find the startup method.

Answered Closed
1
0

When I start my application I get this error:

Cannot find the startup method
“Wisej_EFCore.Program.Main, Wisej-EFCore” defined in Default.json

I just figued it out my project file was missing this line

<PropertyGroup>
<ActiveDebugFramework>net6.0</ActiveDebugFramework>
</PropertyGroup>

Just posting this to help anyone who comes accross this

 

 

 

  • You must to post comments
Great Answer
0
0

Hi Devin,

I’m putting your answer above to close this issue 🙂

<PropertyGroup>
<ActiveDebugFramework>net6.0</ActiveDebugFramework>
</PropertyGroup>

Best,
Alaa

  • You must to post comments
Showing 1 result