mirror of
https://github.com/raylib-cs/raylib-cs
synced 2025-06-30 19:03:42 -04:00
Added Platform.cs - to copy (correct) native library at runtime (for netfx)
Targets file now copies runtimes folder to output directory minor bug fix in sln file.
This commit is contained in:
@ -1,33 +1,32 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
|
||||
<ItemGroup Condition=" '$(Platform)' == 'osx-x64' Or '$(Platform)' == 'AnyCPU' Or '$(Platform)' == 'x64'">
|
||||
<ItemGroup>
|
||||
<None Update="runtimes\**\*.*">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
<Visible>false</Visible>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup Condition=" '$(Platform)' == 'osx-x64' Or '$(Platform)' == 'x64'">
|
||||
<Content Include="raylib">
|
||||
<PackagePath>runtimes\osx-x64\libraylib.dylib</PackagePath>
|
||||
<PackagePath>runtimes\osx-x64\native\libraylib.dylib</PackagePath>
|
||||
<Pack>true</Pack>
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup Condition=" '$(Platform)' == 'win-x86' Or '$(Platform)' == 'AnyCPU' Or '$(Platform)' == 'x86'">
|
||||
<ItemGroup Condition="'$(Platform)' == 'x64' Or '$(Platform)' == 'win-x64'">
|
||||
<Content Include="raylib">
|
||||
<PackagePath>runtimes\win-x86\raylib.dll</PackagePath>
|
||||
<PackagePath>runtimes\win-x64\native\raylib.dll</PackagePath>
|
||||
<Pack>true</Pack>
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup Condition=" '$(Platform)' == 'win-x64' Or '$(Platform)' == 'x64'">
|
||||
<ItemGroup Condition=" '$(Platform)' == 'linux-x64' Or '$(Platform)' == 'x64'">
|
||||
<Content Include="raylib">
|
||||
<PackagePath>runtimes\win-x64\raylib.dll</PackagePath>
|
||||
<Pack>true</Pack>
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup Condition=" '$(Platform)' == 'linux-x64' Or '$(Platform)' == 'AnyCPU' Or '$(Platform)' == 'x64'">
|
||||
<Content Include="raylib">
|
||||
<PackagePath>runtimes\linux-x64\raylib.dll</PackagePath>
|
||||
<PackagePath>runtimes\linux-x64\native\raylib.so</PackagePath>
|
||||
<Pack>true</Pack>
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
|
Reference in New Issue
Block a user