Watch
2
0
Fork
You've already forked raylib-cs
0

Add STAThread notice to README (#302)

This commit is contained in:
Markus Stephanides 2025-05-22 19:07:30 +02:00 committed by GitHub
commit e09d6a4daa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -62,6 +62,8 @@ namespace HelloWorld;
class Program 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() public static void Main()
{ {
Raylib.InitWindow(800, 480, "Hello World"); Raylib.InitWindow(800, 480, "Hello World");