mirror of
https://github.com/raylib-cs/raylib-cs
synced 2025-04-03 11:09:40 -04:00
Added Test.CoreRT
- Basic command line menu for core project. - Made a copy of Test.Core that uses corert compiler.
This commit is contained in:
parent
e18978beeb
commit
ec4f2f0472
@ -11,6 +11,8 @@ Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "Examples", "Examples\Exampl
|
|||||||
EndProject
|
EndProject
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Test.NetFX", "Test.NetFX\Test.NetFX.csproj", "{55D7BB37-3DC7-4A33-B21E-4F549EC988B5}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Test.NetFX", "Test.NetFX\Test.NetFX.csproj", "{55D7BB37-3DC7-4A33-B21E-4F549EC988B5}"
|
||||||
EndProject
|
EndProject
|
||||||
|
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Test.NetCoreRT", "Test.NetCoreRT\Test.NetCoreRT.csproj", "{98B914D1-8CCF-4895-A9E7-CE4AA8067528}"
|
||||||
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SharedMSBuildProjectFiles) = preSolution
|
GlobalSection(SharedMSBuildProjectFiles) = preSolution
|
||||||
Examples\Examples.projitems*{36e54e2a-5899-4d4d-9d78-120db1b4c7b2}*SharedItemsImports = 13
|
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|x64.Build.0 = Release|x64
|
||||||
{55D7BB37-3DC7-4A33-B21E-4F549EC988B5}.Release|x86.ActiveCfg = Release|x86
|
{55D7BB37-3DC7-4A33-B21E-4F549EC988B5}.Release|x86.ActiveCfg = Release|x86
|
||||||
{55D7BB37-3DC7-4A33-B21E-4F549EC988B5}.Release|x86.Build.0 = 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
|
EndGlobalSection
|
||||||
GlobalSection(SolutionProperties) = preSolution
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
HideSolutionNode = FALSE
|
HideSolutionNode = FALSE
|
||||||
|
@ -1,11 +1,35 @@
|
|||||||
|
using System;
|
||||||
|
using System.IO;
|
||||||
|
using Raylib;
|
||||||
|
using static Raylib.Raylib;
|
||||||
|
|
||||||
namespace Test.NetCore
|
namespace Test.NetCore
|
||||||
{
|
{
|
||||||
class Program
|
class Program
|
||||||
{
|
{
|
||||||
static void Main(string[] args)
|
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();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
35
Test.NetCoreRT/Program.cs
Normal file
35
Test.NetCoreRT/Program.cs
Normal file
@ -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();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
25
Test.NetCoreRT/Test.NetCoreRT.csproj
Normal file
25
Test.NetCoreRT/Test.NetCoreRT.csproj
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
<PropertyGroup>
|
||||||
|
<OutputType>Exe</OutputType>
|
||||||
|
<TargetFramework>netcoreapp2.1</TargetFramework>
|
||||||
|
<ApplicationIcon>raylib-cs.ico</ApplicationIcon>
|
||||||
|
<Platforms>AnyCPU;x64;x86</Platforms>
|
||||||
|
<StartupObject>core_basic_window</StartupObject>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x86'">
|
||||||
|
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ProjectReference Include="..\Bindings\Bindings.csproj" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<PackageReference Include="Microsoft.DotNet.ILCompiler" Version="1.0.0-alpha-27022-01" />
|
||||||
|
</ItemGroup>
|
||||||
|
<Import Project="..\Examples\Examples.projitems" Label="Shared" />
|
||||||
|
<Import Project="..\Examples\Examples.projitems" Label="Shared" />
|
||||||
|
<Target Name="TestTarget" AfterTargets="Build">
|
||||||
|
<Copy Condition=" '$(Platform)' == 'x86' " SourceFiles="lib\x86\raylib.dll" DestinationFolder="$(TargetDir)" />
|
||||||
|
<Copy Condition=" '$(Platform)' == 'AnyCPU' " SourceFiles="lib\x86\raylib.dll" DestinationFolder="$(TargetDir)" />
|
||||||
|
<Copy Condition=" '$(Platform)' == 'x64' " SourceFiles="lib\x64\raylib.dll" DestinationFolder="$(TargetDir)" />
|
||||||
|
</Target>
|
||||||
|
</Project>
|
BIN
Test.NetCoreRT/lib/AnyCPU/raylib.dll
Normal file
BIN
Test.NetCoreRT/lib/AnyCPU/raylib.dll
Normal file
Binary file not shown.
BIN
Test.NetCoreRT/lib/x64/raylib.dll
Normal file
BIN
Test.NetCoreRT/lib/x64/raylib.dll
Normal file
Binary file not shown.
BIN
Test.NetCoreRT/lib/x86/raylib.dll
Normal file
BIN
Test.NetCoreRT/lib/x86/raylib.dll
Normal file
Binary file not shown.
9
Test.NetCoreRT/nuget.config
Normal file
9
Test.NetCoreRT/nuget.config
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<configuration>
|
||||||
|
<packageSources>
|
||||||
|
<!--To inherit the global NuGet package sources remove the <clear/> line below -->
|
||||||
|
<clear />
|
||||||
|
<add key="dotnet-core" value="https://dotnet.myget.org/F/dotnet-core/api/v3/index.json" />
|
||||||
|
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
|
||||||
|
</packageSources>
|
||||||
|
</configuration>
|
BIN
Test.NetCoreRT/raylib-cs.ico
Normal file
BIN
Test.NetCoreRT/raylib-cs.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 139 KiB |
Loading…
x
Reference in New Issue
Block a user