❔ System.MissingMethodException: Entry point not found in assembly

Hi i try to run an example program build inside my library. When i run the debuger (Visual Studio Code) i got an exception Unhandled exception. System.MissingMethodException: Entry point not found in assembly 'gdUnit4Mono, Version=4.2.0.0, Culture=neutral, PublicKeyToken=null'. C# extension is installed, the libary is build
6 Replies
nullpointer
nullpointerOP2y ago
here my launch.json
{
"version": "0.2.0",
"configurations": [
{
"name": "test",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build",
"program": "${workspaceFolder}/.godot/mono/temp/bin/Debug/gdUnit4Mono.dll",
"args": [],
"cwd": "${workspaceFolder}",
"console": "internalConsole",
"stopAtEntry": false
},
{
"name": ".NET Core Attach",
"type": "coreclr",
"request": "attach"
}
]
}
{
"version": "0.2.0",
"configurations": [
{
"name": "test",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build",
"program": "${workspaceFolder}/.godot/mono/temp/bin/Debug/gdUnit4Mono.dll",
"args": [],
"cwd": "${workspaceFolder}",
"console": "internalConsole",
"stopAtEntry": false
},
{
"name": ".NET Core Attach",
"type": "coreclr",
"request": "attach"
}
]
}
nullpointer
nullpointerOP2y ago
How to define the entry point? I have a simple Program.cs class
using System;

class Program
{

static void Main(string[] args)
{
Console.WriteLine("Hello World");
}
}
using System;

class Program
{

static void Main(string[] args)
{
Console.WriteLine("Hello World");
}
}
anita
anita2y ago
not shure if it matters, but this project uses the Godot.NET.Sdk
Tvde1
Tvde12y ago
the class Program and void Main are not public. Could you try making it public?
nullpointer
nullpointerOP2y ago
hi, thanks for anwser, i swiched my dev env, one moment to make it public it not helps, but the interesting point is, on Windows there is no exception. But the code is not executed, i don't see the Hello World in the console Using breakpoint is also not working
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server