From 8e58cdf4e809d5d2b4eeb530a34a025ee78650bb Mon Sep 17 00:00:00 2001 From: Jeff Evans Date: Fri, 19 Sep 2014 20:45:51 -0700 Subject: [PATCH] Add nuspec file for nuget package for GoIO SDK This change adds a .nuspec file which creates a .nupkg which can be uploaded to nuget.org. A .NET developer can use the nuget package to easily add references to the GoIO SDK. The .targets file is used to update a Visual Studio project file to automatically copy the native GoIO dlls so they are available at runtime. The readme contains notes and instructions for updating the nuget package. The nuget package is available online at https://www.nuget.org/packages/GoIO.SDK/1.0.6 The version number is 1.0.6 because it took me six tries before I was able to get the package to work correctly. --- nuget/GoIO.SDK.nuspec | 28 ++++++++++++++++++++++++++++ nuget/build/GoIO.SDK.targets | 27 +++++++++++++++++++++++++++ nuget/readme.txt | 11 +++++++++++ 3 files changed, 66 insertions(+) create mode 100644 nuget/GoIO.SDK.nuspec create mode 100644 nuget/build/GoIO.SDK.targets create mode 100644 nuget/readme.txt diff --git a/nuget/GoIO.SDK.nuspec b/nuget/GoIO.SDK.nuspec new file mode 100644 index 0000000..90a8a69 --- /dev/null +++ b/nuget/GoIO.SDK.nuspec @@ -0,0 +1,28 @@ + + + + GoIO.SDK + 1.0.6 + GoIO Software Development Kit + Vernier Software & Technology + https://github.com/VernierSoftwareTechnology/GoIO_SDK/blob/master/license.txt + https://github.com/VernierSoftwareTechnology/GoIO_SDK + true + The GoIO SDK is intended to provide software developers with the ability to access Vernier Software & Technology Go! devices from their own applications. Supported devices include the Go! Motion detector, the Go! Temp thermometer, the Vernier Mini Gc, and the Go! Link sensor interface, which can connect to a variety of analog sensors. + The GoIO SDK is intended to provide software developers with the ability to access Vernier Software & Technology Go! devices from their own applications. + Copyright (C) 2014 Vernier Software & Technology. All rights reserved. + en-US + GoIO Vernier + + + + + + + + + + + + + \ No newline at end of file diff --git a/nuget/build/GoIO.SDK.targets b/nuget/build/GoIO.SDK.targets new file mode 100644 index 0000000..6fb7537 --- /dev/null +++ b/nuget/build/GoIO.SDK.targets @@ -0,0 +1,27 @@ + + + + + $(MSBuildThisFileDirectory)..\native\$(Platform)\GoIO_DLL.dll + + + + + + + + + + + + CopyGoIONativeReference; + + + + + \ No newline at end of file diff --git a/nuget/readme.txt b/nuget/readme.txt new file mode 100644 index 0000000..da66bb8 --- /dev/null +++ b/nuget/readme.txt @@ -0,0 +1,11 @@ +To update the nuget package for GoIO.SDK, update the package version # in the .nuspec file, run "nuget pack" on it, and then upload the package to nuget.org. Easy! + +You can install NuGet from http://docs.nuget.org/docs/start-here/installing-nuget + +Using the command line tool, the command to create the package is: + +nuget pack GoIO.SDK.nuspec + +This will create a file named GoIO.SDK..nupkg, where version is the version # from the .nuspec file + +P.S. don't forget to commit the change to the .nuspec file for the version # \ No newline at end of file