Generate nuget package for OpenTK.GLControl

This commit is contained in:
Stefanos A 2013-12-15 13:03:56 +01:00
parent 4e77a508a1
commit 2b93e453cd
2 changed files with 54 additions and 7 deletions

View file

@ -48,28 +48,25 @@
<WarningLevel>4</WarningLevel> <WarningLevel>4</WarningLevel>
</PropertyGroup> </PropertyGroup>
<Target Name="Build"> <Target Name="Build">
<!-- Copy built files to the tree format expected by nuget -->
<!-- Copy built files to the tree format expected by nuget -->
<CreateItem Include="../../Binaries/OpenTK/Release/OpenTK*"> <CreateItem Include="../../Binaries/OpenTK/Release/OpenTK*">
<Output TaskParameter="Include" ItemName="Binaries" /> <Output TaskParameter="Include" ItemName="Binaries" />
</CreateItem> </CreateItem>
<Copy SourceFiles="@(Binaries)" DestinationFolder="./lib/net20" /> <Copy SourceFiles="@(Binaries)" DestinationFolder="./lib/net20" />
<!-- Update version information --> <!-- Update version information -->
<ReadLinesFromFile File="../../Version.txt"> <ReadLinesFromFile File="../../Version.txt">
<Output TaskParameter="Lines" ItemName="Version" /> <Output TaskParameter="Lines" ItemName="Version" />
</ReadLinesFromFile> </ReadLinesFromFile>
<!-- Execute nuget script --> <!-- Execute nuget script -->
<Exec Command="nuget.exe pack OpenTK.nuspec -Version @(Version)" Condition="$(OS) == 'Windows_NT'" /> <Exec Command="nuget.exe pack OpenTK.nuspec -Version @(Version)" Condition="$(OS) == 'Windows_NT'" />
<Exec Command="nuget.exe pack OpenTK.GLControl.nuspec -Version @(Version)" Condition="$(OS) == 'Windows_NT'" />
<Exec Command="mono nuget.exe pack OpenTK.nuspec -Version @(Version)" Condition="$(OS) != 'Windows_NT'" /> <Exec Command="mono nuget.exe pack OpenTK.nuspec -Version @(Version)" Condition="$(OS) != 'Windows_NT'" />
<Exec Command="mono nuget.exe pack OpenTK.GLControl.nuspec -Version @(Version)" Condition="$(OS) != 'Windows_NT'" />
<!-- Copy the nuget archive to the root directory and add a date stamp --> <!-- Copy the nuget archive to the root directory and add a date stamp -->
<CreateItem Include="OpenTK*.nupkg"> <CreateItem Include="OpenTK*.nupkg">
<Output TaskParameter="Include" ItemName="NugetPackage" /> <Output TaskParameter="Include" ItemName="NugetPackage" />
</CreateItem> </CreateItem>
<Copy SourceFiles="@(NugetPackage)" DestinationFolder="../../" /> <Copy SourceFiles="@(NugetPackage)" DestinationFolder="../../" />
</Target> </Target>
<Target Name="Clean"> <Target Name="Clean">
<CreateItem Include="OpenTK.*.nupkg;lib/**"> <CreateItem Include="OpenTK.*.nupkg;lib/**">
@ -83,6 +80,7 @@
</Target> </Target>
<ItemGroup> <ItemGroup>
<None Include="OpenTK.nuspec" /> <None Include="OpenTK.nuspec" />
<None Include="OpenTK.GLControl.nuspec" />
</ItemGroup> </ItemGroup>
<ProjectExtensions> <ProjectExtensions>
<MonoDevelop> <MonoDevelop>

View file

@ -0,0 +1,49 @@
<?xml version="1.0"?>
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>OpenTK.GLControl</id>
<version>$version$</version>
<authors>Stefanos Apostolopoulos</authors>
<owners>Stefanos Apostolopoulos</owners>
<licenseUrl>http://www.opentk.com/project/license</licenseUrl>
<projectUrl>http://www.opentk.com</projectUrl>
<iconUrl>file:///./logo.png</iconUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<summary>
Add OpenGL graphics to your Windows.Forms or WPF application
</summary>
<description>
OpenTK.GLControl is a Windows.Forms Control with OpenGL rendering capabilities. Use it to add
accelerated 3d graphics to your Windows.Forms or Windows Presentation Foundation (WPF) application.
Features
- Integrate 3d graphics into your Windows.Forms or WPF application
- Use the .Net/Mono language of your choice: C#, F#, VB.Net, Boo, IronPython, IronRuby
- Develop faster with inline documentation and strongly-typed enumerations for all OpenGL and OpenAL functions
This is the official nuget package from http://www.opentk.com
The source code can be found at https://github.com/opentk/opentk
</description>
<releaseNotes>
http://www.opentk.com/news
</releaseNotes>
<copyright>Copyright 2006-2013 Stefanos Apostolopoulos</copyright>
<tags>OpenTK OpenGL WinForms WPF C# F# VB .Net Mono</tags>
<references>
<reference file="OpenTK.GLControl.dll" />
</references>
<frameworkAssemblies>
<frameworkAssembly assemblyName="System" />
<frameworkAssembly assemblyName="System.Drawing" />
<frameworkAssembly assemblyName="System.Windows.Forms" />
<frameworkAssembly assemblyName="System.Xml" />
</frameworkAssemblies>
<dependencies>
<dependency id="OpenTK" version="1.1.0.0" />
</dependencies>
</metadata>
<files>
<file src="lib/net20/OpenTK.GLControl.dll" target="lib/net20" />
<file src="lib/net20/OpenTK.GLControl.xml" target="lib/net20" />
</files>
</package>