From 631493ac8798aace4f2c36921f7a1eaebb8e65d5 Mon Sep 17 00:00:00 2001 From: ChrisDill Date: Wed, 1 Apr 2020 14:35:26 +0100 Subject: [PATCH] Initial project update. - Updated github actions workflow to build using .NET Core on Linux, Windows and Mac. - Updated Raylib-cs.sln with project name changes. - Added experimental netfx.props to help with building using Mono on Linux. - Added app.config. --- .github/workflows/dotnetcore.yml | 9 ++++++--- Raylib-cs.sln | 4 ++-- app.config | 6 ++++++ netfx.props | 29 +++++++++++++++++++++++++++++ 4 files changed, 43 insertions(+), 5 deletions(-) create mode 100755 app.config create mode 100644 netfx.props diff --git a/.github/workflows/dotnetcore.yml b/.github/workflows/dotnetcore.yml index a1dcfd3..bc3339c 100644 --- a/.github/workflows/dotnetcore.yml +++ b/.github/workflows/dotnetcore.yml @@ -4,8 +4,11 @@ on: [push, pull_request] jobs: build: - - runs-on: ubuntu-latest + name: Build on dotnet using ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macOS-latest] steps: - uses: actions/checkout@v1 @@ -14,4 +17,4 @@ jobs: with: dotnet-version: 3.1.100 - name: Build with dotnet - run: dotnet build --configuration Release + run: dotnet build --framework=netcoreapp3.1 -c Release \ No newline at end of file diff --git a/Raylib-cs.sln b/Raylib-cs.sln index fa4ba62..737283e 100644 --- a/Raylib-cs.sln +++ b/Raylib-cs.sln @@ -3,9 +3,9 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 15 VisualStudioVersion = 15.0.27703.2035 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Generator", "Generator\Generator.csproj", "{5A7FD12F-FCF7-4F2B-8D44-3888BF4C4166}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Raylib-cs", "Raylib-cs\Raylib-cs.csproj", "{B02C431E-271A-432E-BA5C-EE3B68DBF585}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tests", "Tests\Tests.MultiTarget.csproj", "{523DEE6A-20CD-47AB-94A6-8D3C3CF9ADAD}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tests", "Tests\Tests.csproj", "{523DEE6A-20CD-47AB-94A6-8D3C3CF9ADAD}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution diff --git a/app.config b/app.config new file mode 100755 index 0000000..af44a75 --- /dev/null +++ b/app.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/netfx.props b/netfx.props new file mode 100644 index 0000000..94572da --- /dev/null +++ b/netfx.props @@ -0,0 +1,29 @@ + + + + + + + + true + + + /Library/Frameworks/Mono.framework/Versions/Current/lib/mono + /usr/lib/mono + /usr/local/lib/mono + + + $(BaseFrameworkPathOverrideForMono)/4.5-api + $(BaseFrameworkPathOverrideForMono)/4.5.1-api + $(BaseFrameworkPathOverrideForMono)/4.5.2-api + $(BaseFrameworkPathOverrideForMono)/4.6-api + $(BaseFrameworkPathOverrideForMono)/4.6.1-api + $(BaseFrameworkPathOverrideForMono)/4.6.2-api + $(BaseFrameworkPathOverrideForMono)/4.7-api + $(BaseFrameworkPathOverrideForMono)/4.7.1-api + true + + + $(FrameworkPathOverride)/Facades;$(AssemblySearchPaths) + +