From 9072265c86de80e23d4ab6e389a37dcb2dea80a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Sim=C3=B5es?= Date: Fri, 22 Dec 2017 10:20:28 +0000 Subject: [PATCH] Extracted Nuget build project to separate solution (#3) --- README.md | 6 ++-- appveyor.yml | 6 ++++ install-vsix-appveyor.ps1 | 2 +- ...noFramework.Windows.Devices.Gpio.Nuget.sln | 36 +++++++++++++++++++ source/nanoFramework.Windows.Devices.Gpio.sln | 20 +---------- 5 files changed, 48 insertions(+), 22 deletions(-) create mode 100644 source/nanoFramework.Windows.Devices.Gpio.Nuget.sln diff --git a/README.md b/README.md index 588ee4f..e22e404 100644 --- a/README.md +++ b/README.md @@ -4,13 +4,15 @@ ### Welcome to the **nanoFramework** Windows.Devices.Gpio Library repository! +[![NuGet](https://img.shields.io/nuget/dt/nanoFramework.Windows.Devices.Gpio.svg)]() [![#yourfirstpr](https://img.shields.io/badge/first--timers--only-friendly-blue.svg)](https://github.com/nanoframework/Home/blob/master/CONTRIBUTING.md) + ## Build status | Component | Build Status | NuGet Package | |:-|---|---| -| Class Libraries | [![Build status](https://ci.appveyor.com/api/projects/status/rx2hrsucsn1p0ohd?svg=true)](https://ci.appveyor.com/project/nfbot/lib-windows-devices-gpio) | [![NuGet](https://img.shields.io/nuget/dt/nanoFramework.Windows.Devices.Gpio.svg)](https://www.nuget.org/packages/nanoFramework.Windows.Devices.Gpio) | - +| Windows.Devices.Gpio | [![Build status](https://ci.appveyor.com/api/projects/status/rx2hrsucsn1p0ohd/branch/master?svg=true)](https://ci.appveyor.com/project/nfbot/lib-windows-devices-gpio/branch/master) | [![NuGet](https://img.shields.io/nuget/vpre/nanoFramework.Windows.Devices.Gpio.svg)](https://www.nuget.org/packages/nanoFramework.Windows.Devices.Gpio/) | +| Windows.Devices.Gpio (preview) | [![Build status](https://ci.appveyor.com/api/projects/status/rx2hrsucsn1p0ohd?svg=true)](https://ci.appveyor.com/project/nfbot/lib-windows-devices-gpio) | [![MyGet Pre Release](https://img.shields.io/myget/nanoframework-dev/vpre/nanoFramework.Windows.Devices.Gpio.svg)](https://www.myget.org/feed/nanoframework-dev/package/nuget/nanoFramework.Windows.Devices.Gpio) | ## Feedback and documentation diff --git a/appveyor.yml b/appveyor.yml index 27f1766..05253e5 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -59,6 +59,8 @@ msbuild source\nanoFramework.Windows.Devices.Gpio.sln /p:Configuration=Release /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" + msbuild source\nanoFramework.Windows.Devices.Gpio.Nuget.sln /p:Configuration=Release /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" + before_deploy: # need this to keep ruby happy - ps: md c:\tmp @@ -151,6 +153,8 @@ msbuild source\nanoFramework.Windows.Devices.Gpio.sln /p:Configuration=Release /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" + msbuild source\nanoFramework.Windows.Devices.Gpio.Nuget.sln /p:Configuration=Release /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" + on_success: # for this environment variable to work here it has to be set in AppVeyor UI - nuget push source\Nuget.Windows.Devices.Gpio\bin\Release\nanoFramework.Windows.Devices.Gpio.%GitVersion_NuGetVersionV2%.nupkg %MyGetToken% -Source https://www.myget.org/F/nanoframework-dev/api/v2/package @@ -258,6 +262,8 @@ msbuild source\nanoFramework.Windows.Devices.Gpio.sln /p:Configuration=Release /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" + msbuild source\nanoFramework.Windows.Devices.Gpio.Nuget.sln /p:Configuration=Release /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" + before_deploy: # need this to keep ruby happy - ps: md c:\tmp diff --git a/install-vsix-appveyor.ps1 b/install-vsix-appveyor.ps1 index 4387432..31d841e 100644 --- a/install-vsix-appveyor.ps1 +++ b/install-vsix-appveyor.ps1 @@ -1,4 +1,4 @@ $vsixPath = "$($env:USERPROFILE)\nanoFramework.Tools.VS2017.Extension.vsix" -(New-Object Net.WebClient).DownloadFile('https://visualstudiogallery.msdn.microsoft.com/18fe3370-32c4-49d6-bf02-1b0ab0b1e537/file/261095/11/nanoFramework.Tools.VS2017.Extension.vsix', $vsixPath) +(New-Object Net.WebClient).DownloadFile('https://marketplace.visualstudio.com/_apis/public/gallery/publishers/vs-publisher-1470366/vsextensions/nanoFrameworkVS2017Extension/0/vspackage', $vsixPath) "`"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VSIXInstaller.exe`" /q /a $vsixPath" | out-file ".\install-vsix.cmd" -Encoding ASCII & .\install-vsix.cmd diff --git a/source/nanoFramework.Windows.Devices.Gpio.Nuget.sln b/source/nanoFramework.Windows.Devices.Gpio.Nuget.sln new file mode 100644 index 0000000..81fe8a3 --- /dev/null +++ b/source/nanoFramework.Windows.Devices.Gpio.Nuget.sln @@ -0,0 +1,36 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 15 +VisualStudioVersion = 15.0.27130.2010 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FF286327-C783-4F7A-AB73-9BCBAD0D4460}") = "Nuget.Windows.Devices.Gpio", "Nuget.Windows.Devices.Gpio\Nuget.Windows.Devices.Gpio.nuproj", "{96EABA11-6A33-454D-A7B2-B96CA5617E8C}" +EndProject +Project("{FF286327-C783-4F7A-AB73-9BCBAD0D4460}") = "Nuget.Windows.Devices.Gpio.DELIVERABLES", "Nuget.Windows.Devices.Gpio.DELIVERABLES\Nuget.Windows.Devices.Gpio.DELIVERABLES.nuproj", "{8FD36AD6-387C-48F0-A695-52D9149216FB}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".nuget", ".nuget", "{5112CDA3-5653-4C07-8D75-97F1160D3F70}" + ProjectSection(SolutionItems) = preProject + packages.config = packages.config + EndProjectSection +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {96EABA11-6A33-454D-A7B2-B96CA5617E8C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {96EABA11-6A33-454D-A7B2-B96CA5617E8C}.Debug|Any CPU.Build.0 = Debug|Any CPU + {96EABA11-6A33-454D-A7B2-B96CA5617E8C}.Release|Any CPU.ActiveCfg = Release|Any CPU + {96EABA11-6A33-454D-A7B2-B96CA5617E8C}.Release|Any CPU.Build.0 = Release|Any CPU + {8FD36AD6-387C-48F0-A695-52D9149216FB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {8FD36AD6-387C-48F0-A695-52D9149216FB}.Debug|Any CPU.Build.0 = Debug|Any CPU + {8FD36AD6-387C-48F0-A695-52D9149216FB}.Release|Any CPU.ActiveCfg = Release|Any CPU + {8FD36AD6-387C-48F0-A695-52D9149216FB}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {73E274E0-8DFA-4D6F-BB7F-C312EA584FEE} + EndGlobalSection +EndGlobal diff --git a/source/nanoFramework.Windows.Devices.Gpio.sln b/source/nanoFramework.Windows.Devices.Gpio.sln index 0074bc6..11be40d 100644 --- a/source/nanoFramework.Windows.Devices.Gpio.sln +++ b/source/nanoFramework.Windows.Devices.Gpio.sln @@ -1,20 +1,10 @@  Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 15 -VisualStudioVersion = 15.0.27004.2010 +VisualStudioVersion = 15.0.27130.2010 MinimumVisualStudioVersion = 10.0.40219.1 Project("{11A8DD76-328B-46DF-9F39-F559912D0360}") = "Windows.Devices.Gpio", "Windows.Devices.Gpio.nfproj", "{2FC2FDB5-DCEC-4B99-B9AD-5E45CED385E5}" EndProject -Project("{FF286327-C783-4F7A-AB73-9BCBAD0D4460}") = "Nuget.Windows.Devices.Gpio", "Nuget.Windows.Devices.Gpio\Nuget.Windows.Devices.Gpio.nuproj", "{96EABA11-6A33-454D-A7B2-B96CA5617E8C}" - ProjectSection(ProjectDependencies) = postProject - {2FC2FDB5-DCEC-4B99-B9AD-5E45CED385E5} = {2FC2FDB5-DCEC-4B99-B9AD-5E45CED385E5} - EndProjectSection -EndProject -Project("{FF286327-C783-4F7A-AB73-9BCBAD0D4460}") = "Nuget.Windows.Devices.Gpio.DELIVERABLES", "Nuget.Windows.Devices.Gpio.DELIVERABLES\Nuget.Windows.Devices.Gpio.DELIVERABLES.nuproj", "{8FD36AD6-387C-48F0-A695-52D9149216FB}" - ProjectSection(ProjectDependencies) = postProject - {2FC2FDB5-DCEC-4B99-B9AD-5E45CED385E5} = {2FC2FDB5-DCEC-4B99-B9AD-5E45CED385E5} - EndProjectSection -EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".nuget", ".nuget", "{E5DC0609-D746-4BBC-A4EB-01D2284D35F9}" ProjectSection(SolutionItems) = preProject packages.config = packages.config @@ -30,14 +20,6 @@ Global {2FC2FDB5-DCEC-4B99-B9AD-5E45CED385E5}.Debug|Any CPU.Build.0 = Debug|Any CPU {2FC2FDB5-DCEC-4B99-B9AD-5E45CED385E5}.Release|Any CPU.ActiveCfg = Release|Any CPU {2FC2FDB5-DCEC-4B99-B9AD-5E45CED385E5}.Release|Any CPU.Build.0 = Release|Any CPU - {96EABA11-6A33-454D-A7B2-B96CA5617E8C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {96EABA11-6A33-454D-A7B2-B96CA5617E8C}.Debug|Any CPU.Build.0 = Debug|Any CPU - {96EABA11-6A33-454D-A7B2-B96CA5617E8C}.Release|Any CPU.ActiveCfg = Release|Any CPU - {96EABA11-6A33-454D-A7B2-B96CA5617E8C}.Release|Any CPU.Build.0 = Release|Any CPU - {8FD36AD6-387C-48F0-A695-52D9149216FB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {8FD36AD6-387C-48F0-A695-52D9149216FB}.Debug|Any CPU.Build.0 = Debug|Any CPU - {8FD36AD6-387C-48F0-A695-52D9149216FB}.Release|Any CPU.ActiveCfg = Release|Any CPU - {8FD36AD6-387C-48F0-A695-52D9149216FB}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE