Add STAThread notice to README (#302)
This commit is contained in:
parent
f9787a8342
commit
e09d6a4daa
1 changed files with 2 additions and 0 deletions
|
|
@ -62,6 +62,8 @@ namespace HelloWorld;
|
|||
|
||||
class Program
|
||||
{
|
||||
// STAThread is required if you deploy using NativeAOT on Windows - See https://github.com/raylib-cs/raylib-cs/issues/301
|
||||
[STAThread]
|
||||
public static void Main()
|
||||
{
|
||||
Raylib.InitWindow(800, 480, "Hello World");
|
||||
|
|
|
|||
Loading…
Reference in a new issue