diff --git a/Raylib-cs.sln b/Raylib-cs.sln
index 5ef9aa9..f616bac 100644
--- a/Raylib-cs.sln
+++ b/Raylib-cs.sln
@@ -11,6 +11,8 @@ Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "Examples", "Examples\Exampl
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Test.NetFX", "Test.NetFX\Test.NetFX.csproj", "{55D7BB37-3DC7-4A33-B21E-4F549EC988B5}"
EndProject
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Test.NetCoreRT", "Test.NetCoreRT\Test.NetCoreRT.csproj", "{98B914D1-8CCF-4895-A9E7-CE4AA8067528}"
+EndProject
Global
GlobalSection(SharedMSBuildProjectFiles) = preSolution
Examples\Examples.projitems*{36e54e2a-5899-4d4d-9d78-120db1b4c7b2}*SharedItemsImports = 13
@@ -61,6 +63,18 @@ Global
{55D7BB37-3DC7-4A33-B21E-4F549EC988B5}.Release|x64.Build.0 = Release|x64
{55D7BB37-3DC7-4A33-B21E-4F549EC988B5}.Release|x86.ActiveCfg = Release|x86
{55D7BB37-3DC7-4A33-B21E-4F549EC988B5}.Release|x86.Build.0 = Release|x86
+ {98B914D1-8CCF-4895-A9E7-CE4AA8067528}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {98B914D1-8CCF-4895-A9E7-CE4AA8067528}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {98B914D1-8CCF-4895-A9E7-CE4AA8067528}.Debug|x64.ActiveCfg = Debug|x64
+ {98B914D1-8CCF-4895-A9E7-CE4AA8067528}.Debug|x64.Build.0 = Debug|x64
+ {98B914D1-8CCF-4895-A9E7-CE4AA8067528}.Debug|x86.ActiveCfg = Debug|x86
+ {98B914D1-8CCF-4895-A9E7-CE4AA8067528}.Debug|x86.Build.0 = Debug|x86
+ {98B914D1-8CCF-4895-A9E7-CE4AA8067528}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {98B914D1-8CCF-4895-A9E7-CE4AA8067528}.Release|Any CPU.Build.0 = Release|Any CPU
+ {98B914D1-8CCF-4895-A9E7-CE4AA8067528}.Release|x64.ActiveCfg = Release|x64
+ {98B914D1-8CCF-4895-A9E7-CE4AA8067528}.Release|x64.Build.0 = Release|x64
+ {98B914D1-8CCF-4895-A9E7-CE4AA8067528}.Release|x86.ActiveCfg = Release|x86
+ {98B914D1-8CCF-4895-A9E7-CE4AA8067528}.Release|x86.Build.0 = Release|x86
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
diff --git a/Test.NetCore/Program.cs b/Test.NetCore/Program.cs
index eebc491..898d2a2 100644
--- a/Test.NetCore/Program.cs
+++ b/Test.NetCore/Program.cs
@@ -1,11 +1,35 @@
-
+using System;
+using System.IO;
+using Raylib;
+using static Raylib.Raylib;
+
namespace Test.NetCore
{
class Program
{
static void Main(string[] args)
{
- core_basic_window.Main();
+ Console.WriteLine("Welcome to raylib-cs!");
+
+ var dir = Environment.CurrentDirectory;
+ while (true)
+ {
+ Console.WriteLine("Select raylib example(core/core_2d_camera)");
+
+ var filePath = Console.ReadLine();;
+ Console.WriteLine("Running example " + filePath + "...");
+
+ dir = Directory.GetParent(dir).FullName;
+ dir = Directory.GetParent(dir).FullName;
+ dir = Directory.GetParent(dir).FullName;
+ dir = Directory.GetParent(dir).FullName;
+ dir += "\\Examples\\";
+
+ var folder = dir + Path.GetDirectoryName(filePath);
+ ChangeDirectory(folder);
+ Type.GetType(filePath)?.GetMethod("Main")?.Invoke(null, args);
+ Console.WriteLine();
+ }
}
}
}
diff --git a/Test.NetCoreRT/Program.cs b/Test.NetCoreRT/Program.cs
new file mode 100644
index 0000000..898d2a2
--- /dev/null
+++ b/Test.NetCoreRT/Program.cs
@@ -0,0 +1,35 @@
+using System;
+using System.IO;
+using Raylib;
+using static Raylib.Raylib;
+
+namespace Test.NetCore
+{
+ class Program
+ {
+ static void Main(string[] args)
+ {
+ Console.WriteLine("Welcome to raylib-cs!");
+
+ var dir = Environment.CurrentDirectory;
+ while (true)
+ {
+ Console.WriteLine("Select raylib example(core/core_2d_camera)");
+
+ var filePath = Console.ReadLine();;
+ Console.WriteLine("Running example " + filePath + "...");
+
+ dir = Directory.GetParent(dir).FullName;
+ dir = Directory.GetParent(dir).FullName;
+ dir = Directory.GetParent(dir).FullName;
+ dir = Directory.GetParent(dir).FullName;
+ dir += "\\Examples\\";
+
+ var folder = dir + Path.GetDirectoryName(filePath);
+ ChangeDirectory(folder);
+ Type.GetType(filePath)?.GetMethod("Main")?.Invoke(null, args);
+ Console.WriteLine();
+ }
+ }
+ }
+}
diff --git a/Test.NetCoreRT/Test.NetCoreRT.csproj b/Test.NetCoreRT/Test.NetCoreRT.csproj
new file mode 100644
index 0000000..19fc8f4
--- /dev/null
+++ b/Test.NetCoreRT/Test.NetCoreRT.csproj
@@ -0,0 +1,25 @@
+
+
+ Exe
+ netcoreapp2.1
+ raylib-cs.ico
+ AnyCPU;x64;x86
+ core_basic_window
+
+
+ true
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Test.NetCoreRT/lib/AnyCPU/raylib.dll b/Test.NetCoreRT/lib/AnyCPU/raylib.dll
new file mode 100644
index 0000000..072c4a5
Binary files /dev/null and b/Test.NetCoreRT/lib/AnyCPU/raylib.dll differ
diff --git a/Test.NetCoreRT/lib/x64/raylib.dll b/Test.NetCoreRT/lib/x64/raylib.dll
new file mode 100644
index 0000000..55e3edf
Binary files /dev/null and b/Test.NetCoreRT/lib/x64/raylib.dll differ
diff --git a/Test.NetCoreRT/lib/x86/raylib.dll b/Test.NetCoreRT/lib/x86/raylib.dll
new file mode 100644
index 0000000..072c4a5
Binary files /dev/null and b/Test.NetCoreRT/lib/x86/raylib.dll differ
diff --git a/Test.NetCoreRT/nuget.config b/Test.NetCoreRT/nuget.config
new file mode 100644
index 0000000..d8d3f2b
--- /dev/null
+++ b/Test.NetCoreRT/nuget.config
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
+
+
diff --git a/Test.NetCoreRT/raylib-cs.ico b/Test.NetCoreRT/raylib-cs.ico
new file mode 100644
index 0000000..296d5dd
Binary files /dev/null and b/Test.NetCoreRT/raylib-cs.ico differ