Azure devops build pipeline on .net core application, throws main is not a suitable entry point

Copper Contributor
Azure devops build pipeline on .net core application, throws main is not a suitable entry point.
Build works on localhost
Program.cs file exists with static main method
While build agent builds, it throws
##[error]csc(0,0): error cs5001: program does not contain a static 'main' method suitable for an entry point
0 Replies