JakeYallop / JakeYallop/WasmSharp
Program does not contain a static 'Main' method suitable for an entry point
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 12
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Description
it worked, then it didn't. So I deleted everything and cloned again... same error
Changing the code to this does work though
```cs
using System;
class Program
{
static void Main(string[] args)
{
// Your program logic goes here
Console.WriteLine("Hello from the static Main method!");
// Example of using command-line arguments
if (args.Length > 0)
{
Console.WriteLine($"First argument: {args[0]}");
}
}
}
```
PS: You've got intellisense working?! This is awesome dude, I've definitely gotta figure out how you did that
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source file or test is named. Reproduce the error with the failing C# snippet and the working static Main example, then trace the entry-point handling used when compiling C# in the browser. Done means valid programs no longer report a missing suitable Main method, while the shown working form remains supported.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, typescript, wasm
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100