Improved nuget version information

This commit is contained in:
Stefanos A 2013-12-15 12:02:43 +01:00
parent e1ef842e02
commit b424673ef0
2 changed files with 59 additions and 31 deletions

View file

@ -48,22 +48,28 @@
<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" />
<!-- Execute nuget script -->
<Exec Command="nuget.exe pack OpenTK.nuspec" Condition="$(OS) == 'Windows_NT'" /> <!-- Update version information -->
<Exec Command="mono nuget.exe pack OpenTK.nuspec" Condition="$(OS) != 'Windows_NT'" />
<!-- Copy the nuget archive to the root directory and add a date stamp -->
<ReadLinesFromFile File="../../Version.txt"> <ReadLinesFromFile File="../../Version.txt">
<Output TaskParameter="Lines" ItemName="Version" /> <Output TaskParameter="Lines" ItemName="Version" />
</ReadLinesFromFile> </ReadLinesFromFile>
<!-- Execute nuget script -->
<Exec Command="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'" />
<!-- 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)" DestinationFiles="@(Version-&gt;'..\..\opentk-%(Identity).nupkg')" /> <Copy SourceFiles="@(NugetPackage)" DestinationFolder="../../" />
</Target> </Target>
<Target Name="Clean"> <Target Name="Clean">
<CreateItem Include="OpenTK.*.nupkg;lib/**"> <CreateItem Include="OpenTK.*.nupkg;lib/**">
@ -78,4 +84,18 @@
<ItemGroup> <ItemGroup>
<None Include="OpenTK.nuspec" /> <None Include="OpenTK.nuspec" />
</ItemGroup> </ItemGroup>
<ProjectExtensions>
<MonoDevelop>
<Properties>
<Policies>
<TextStylePolicy inheritsSet="VisualStudio" inheritsScope="text/plain" scope="text/plain" />
<CSharpFormattingPolicy IndentSwitchBody="True" AnonymousMethodBraceStyle="NextLine" PropertyBraceStyle="NextLine" PropertyGetBraceStyle="NextLine" PropertySetBraceStyle="NextLine" EventBraceStyle="NextLine" EventAddBraceStyle="NextLine" EventRemoveBraceStyle="NextLine" StatementBraceStyle="NextLine" ElseNewLinePlacement="NewLine" CatchNewLinePlacement="NewLine" FinallyNewLinePlacement="NewLine" WhileNewLinePlacement="NewLine" ArrayInitializerBraceStyle="NextLine" BeforeMethodDeclarationParentheses="False" BeforeMethodCallParentheses="False" BeforeConstructorDeclarationParentheses="False" BeforeIndexerDeclarationBracket="False" BeforeDelegateDeclarationParentheses="False" NewParentheses="False" SpacesBeforeBrackets="False" BlankLinesBeforeFirstDeclaration="1" AlignToFirstMethodDeclarationParameter="False" AlignToFirstIndexerDeclarationParameter="False" inheritsSet="Mono" inheritsScope="text/x-csharp" scope="text/x-csharp" />
<TextStylePolicy FileWidth="120" inheritsSet="VisualStudio" inheritsScope="text/plain" scope="text/x-csharp" />
<StandardHeader Text="#region License&#xA;&#xA;${FileName}&#xA; &#xA;Author:&#xA; ${AuthorName} &lt;${AuthorEmail}&gt;&#xA;&#xA;Copyright (c) 2006-${Year} ${CopyrightHolder}&#xA;&#xA;Permission is hereby granted, free of charge, to any person obtaining a copy&#xA;of this software and associated documentation files (the &quot;Software&quot;), to deal&#xA;in the Software without restriction, including without limitation the rights&#xA;to use, copy, modify, merge, publish, distribute, sublicense, and/or sell&#xA;copies of the Software, and to permit persons to whom the Software is&#xA;furnished to do so, subject to the following conditions:&#xA;&#xA;The above copyright notice and this permission notice shall be included in&#xA;all copies or substantial portions of the Software.&#xA;&#xA;THE SOFTWARE IS PROVIDED &quot;AS IS&quot;, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR&#xA;IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,&#xA;FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE&#xA;AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER&#xA;LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,&#xA;OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN&#xA;THE SOFTWARE.&#xA;&#xA;#endregion" IncludeInNewFiles="True" />
<TextStylePolicy TabWidth="2" IndentWidth="2" NoTabsAfterNonTabs="True" inheritsSet="VisualStudio" inheritsScope="text/plain" scope="application/xml" />
<XmlFormattingPolicy inheritsSet="Mono" inheritsScope="application/xml" scope="application/xml" />
</Policies>
</Properties>
</MonoDevelop>
</ProjectExtensions>
</Project> </Project>

View file

@ -1,32 +1,40 @@
<?xml version="1.0"?> <?xml version="1.0"?>
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd"> <package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata> <metadata>
<id>OpenTK</id> <id>OpenTK</id>
<version>1.1</version> <version>$version$</version>
<authors>Stefanos Apostolopoulos</authors> <authors>Stefanos Apostolopoulos</authors>
<owners>Stefanos Apostolopoulos</owners> <owners>Stefanos Apostolopoulos</owners>
<licenseUrl>http://www.opentk.com/project/license</licenseUrl> <licenseUrl>http://www.opentk.com/project/license</licenseUrl>
<projectUrl>http://www.opentk.com</projectUrl> <projectUrl>http://www.opentk.com</projectUrl>
<iconUrl>file:///./logo.png</iconUrl> <iconUrl>file:///./logo.png</iconUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance> <requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>The Open Toolkit library (OpenTK)</description> <summary>
<releaseNotes> The Open Toolkit library (OpenTK) is an advanced, low-level C# wrapper for OpenGL, OpenGL ES and OpenAL.
OpenTK is an open-source C# library that gives you fast low-level access to OpenGL and OpenAL. </summary>
Use it to create a game or embed accelerated graphics into your WinForms or WPF GUI. <description>
The Open Toolkit library (OpenTK) is an advanced, low-level C# wrapper for OpenGL, OpenGL ES and OpenAL.
It is suitable for games, scientific visualizations and projects that require 3d graphics, audio or compute functionality.
OpenTK 1.1 adds support for OpenGL 4.4 and OpenGL 3.0, high-DPI (retina) displays OpenTK applications run on Windows, Linux, Mac OS X, Android and iPhone.
and improves platform compatibility through a brand-new SDL2 backend.
This is the official nuget package for the Open Toolkit library (OpenTK). This is the official nuget package from http://www.opentk.com
Visit http://www.opentk.com for more information or https://github.com/opentk/opentk The source code can be found at https://github.com/opentk/opentk
for the source code. </description>
</releaseNotes> <releaseNotes>
<copyright>Copyright 2006-2013 Stefanos Apostolopoulos</copyright> http://www.opentk.com/news
<tags>OpenTK OpenAL OpenGL C# F# VB OpenTK.dll</tags> </releaseNotes>
<references> <copyright>Copyright 2006-2013 Stefanos Apostolopoulos</copyright>
<reference file="OpenTK.dll" /> <tags>OpenTK OpenAL OpenGL C# F# VB OpenTK.dll</tags>
</references> <references>
</metadata> <reference file="OpenTK.dll" />
</references>
<frameworkAssemblies>
<frameworkAssembly assemblyName="System" />
<frameworkAssembly assemblyName="System.Drawing" />
<frameworkAssembly assemblyName="System.Xml" />
</frameworkAssemblies>
</metadata>
<files> <files>
<file src="lib/net20/OpenTK.dll" target="lib/net20" /> <file src="lib/net20/OpenTK.dll" target="lib/net20" />
<file src="lib/net20/OpenTK.dll.config" target="lib/net20" /> <file src="lib/net20/OpenTK.dll.config" target="lib/net20" />