Add STAThread notice to README
This commit is contained in:
parent
f9787a8342
commit
2aa20f1f27
1 changed files with 2 additions and 0 deletions
|
|
@ -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");
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue