2
0
mirror of https://github.com/raylib-cs/raylib-cs synced 2025-04-03 11:09:40 -04:00

Improved Nuget native library handling

This commit is contained in:
Ben Parsons 2020-05-06 04:07:09 +10:00
parent 38675b0c4d
commit cea720ba21
2 changed files with 23 additions and 15 deletions

View File

@ -15,7 +15,7 @@
<PropertyGroup> <PropertyGroup>
<Version>3.1.0</Version> <Version>3.1.0</Version>
<PackageVersion>3.1.0</PackageVersion> <PackageVersion>3.1.3</PackageVersion>
<Authors>Chris Dill, Raysan5 &amp; Others</Authors> <Authors>Chris Dill, Raysan5 &amp; Others</Authors>
<PackProject>true</PackProject> <PackProject>true</PackProject>
<TargetsForTfmSpecificBuildOutput>$(TargetsForTfmSpecificBuildOutput);GetNativeLibraryFiles</TargetsForTfmSpecificBuildOutput> <TargetsForTfmSpecificBuildOutput>$(TargetsForTfmSpecificBuildOutput);GetNativeLibraryFiles</TargetsForTfmSpecificBuildOutput>

View File

@ -1,27 +1,35 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Condition=" '$(Platform)' == 'osx-x64' "> <ItemGroup Condition=" '$(Platform)' == 'osx-x64' Or '$(Platform)' == 'AnyCPU' Or '$(Platform)' == 'x64'">
<Reference Include="raylib"> <Content Include="raylib">
<HintPath>..\..\runtimes\osx-x64\native\libraylib.dylib</HintPath> <PackagePath>runtimes\osx-x64\libraylib.dylib</PackagePath>
</Reference> <Pack>true</Pack>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup> </ItemGroup>
<ItemGroup Condition=" '$(Platform)' == 'win-x86' Or '$(Platform)' == 'AnyCPU' Or '$(Platform)' == 'x86'"> <ItemGroup Condition=" '$(Platform)' == 'win-x86' Or '$(Platform)' == 'AnyCPU' Or '$(Platform)' == 'x86'">
<Reference Include="raylib"> <Content Include="raylib">
<HintPath>..\..\runtimes\win-x86\native\raylib.dll</HintPath> <PackagePath>runtimes\win-x86\raylib.dll</PackagePath>
</Reference> <Pack>true</Pack>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup> </ItemGroup>
<ItemGroup Condition=" '$(Platform)' == 'win-x64' Or '$(Platform)' == 'x64'"> <ItemGroup Condition=" '$(Platform)' == 'win-x64' Or '$(Platform)' == 'x64'">
<Reference Include="raylib"> <Content Include="raylib">
<HintPath>..\..\runtimes\win-x64\native\raylib.dll</HintPath> <PackagePath>runtimes\win-x64\raylib.dll</PackagePath>
</Reference> <Pack>true</Pack>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup> </ItemGroup>
<ItemGroup Condition=" '$(Platform)' == 'linux-x64'"> <ItemGroup Condition=" '$(Platform)' == 'linux-x64' Or '$(Platform)' == 'AnyCPU' Or '$(Platform)' == 'x64'">
<Reference Include="raylib"> <Content Include="raylib">
<HintPath>..\..\runtimes\linux-x64\native\raylib.so</HintPath> <PackagePath>runtimes\linux-x64\raylib.dll</PackagePath>
</Reference> <Pack>true</Pack>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup> </ItemGroup>
</Project> </Project>