microsoft / DockerTools

Tools For Docker, including Visual Studio Provisioning and Publishing
Other
173 stars 26 forks source link

Program does not contain a static 'Main' method suitable for an entry point docker #405

Open jumapaoA opened 8 months ago

jumapaoA commented 8 months ago

CSC : error CS5001: Program does not contain a static 'Main' method suitable for an entry point I got this error while having ASP.NET Core 7 web app with ReactJS. The main method is in Program.cs and it is using a high-level statement.

dbreshears commented 8 months ago

@jumapaoA . Have you seen this doc - https://learn.microsoft.com/en-us/visualstudio/containers/container-tools-react?view=vs-2022