2
0
mirror of https://github.com/raylib-cs/raylib-cs synced 2025-04-05 11:19:39 -04:00

Work on nuget support

- Improved Raylib-cs.nuspec.
- Added Raylib-cs.targets file to copy dll for user.
This commit is contained in:
ChrisDill 2018-12-29 12:27:30 +00:00
parent d4d47694d4
commit 712106a58b
2 changed files with 32 additions and 3 deletions

View File

@ -1,5 +1,5 @@
<?xml version="1.0"?> <?xml version="1.0"?>
<package > <package>
<metadata> <metadata>
<id>Raylib-cs</id> <id>Raylib-cs</id>
<version>1.3</version> <version>1.3</version>
@ -14,7 +14,19 @@
<tags>raylib csharp binding opengl gamedev</tags> <tags>raylib csharp binding opengl gamedev</tags>
</metadata> </metadata>
<files> <files>
<file src="Bindings\lib\**\*.dll*" target="lib" /> <file src="Raylib-cs.targets" target="build" />
<file src="Bindings\*.cs" target="Content\raylib-cs" />
<file src="*Bindings\Easings.cs" target="Content\raylib-cs" />
<!--<file src="*Bindings\Physac.cs" target="Content\raylib-cs" />-->
<file src="*Bindings\Raygui.cs" target="Content\raylib-cs" />
<file src="*Bindings\Raylib.cs" target="Content\raylib-cs" />
<file src="*Bindings\Raymath.cs" target="Content\raylib-cs" />
<!--<file src="*Bindings\Rlgl.cs" target="Content\raylib-cs" />-->
<!-- Native Libs -->
<file src="Bindings\native\x86\raylib.dll" target="native\x86" />
<file src="Bindings\native\x86\raylib.pdb" target="native\x86" />
<file src="Bindings\native\x64\raylib.dll" target="native\x64" />
<file src="Bindings\native\x64\raylib.pdb" target="native\x64" />
</files> </files>
</package> </package>

17
Raylib-cs.targets Normal file
View File

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Condition=" '$(Platform)' == 'x64' ">
<Content Include="$(MSBuildThisFileDirectory)..\native\x64\raylib.dll">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<Link>raylib.dll</Link>
</Content>
</ItemGroup>
<ItemGroup Condition=" '$(Platform)' == 'x86' OR '$(Platform)' == 'AnyCPU' ">
<Content Include="$(MSBuildThisFileDirectory)..\native\x86\raylib.dll">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<Link>raylib.dll</Link>
</Content>
</ItemGroup>
</Project>