Skip to content

Commit

Permalink
Use nuget pack for packaging
Browse files Browse the repository at this point in the history
NuProj is not supported in Visual Studio 2017 nor will it probably ever be according to its creator/maintainer.

Waiting on chocolatey/choco#1313 to be able to use that and uncomment Chocolatey-specific fields.
  • Loading branch information
heaths committed May 29, 2017
1 parent a0b0700 commit de001a1
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 79 deletions.
1 change: 0 additions & 1 deletion .nuget/packages.config
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="NuProj" version="0.11.14-beta" />
<package id="vswhere" version="1.0.62" />
</packages>
10 changes: 9 additions & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,17 @@ notifications:
cache:
- packages -> **\packages.config

before_build:
install:
- nuget restore

build:
parallel: true
verbosity: detailed

after_build:
- ps: dir env:\
- nuget pack -OutputDirectory bin\$(configuration) -Version $(APPVEYOR_BUILD_VERSION) -Properties "Configuration=$(configuration);CommitId=$(APPVEYOR_REPO_COMMIT)" pkg\vswhere\vswhere.nuspec

test_script:
- tools\test.cmd -v

Expand Down
4 changes: 4 additions & 0 deletions inc/Common.Cpp.targets
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<PropertyGroup>
<BuildDependsOn>
GenerateVersionInfo;
SetCloudVersionVariables;
$(BuildDependsOn)
</BuildDependsOn>
</PropertyGroup>
Expand Down Expand Up @@ -48,4 +49,7 @@
<FileWrites Include="$(_VersionInfoFile)"/>
</ItemGroup>
</Target>
<Target Name="SetCloudVersionVariables" DependsOnTargets="GetBuildVersion" Condition="'$(APPVEYOR)'=='True'">
<Exec Command="appveyor SetVariable -Name GitBuildVersionSimple -Value &quot;$(BuildVersionSimple)&quot;"/>
</Target>
</Project>
68 changes: 0 additions & 68 deletions pkg/vswhere/vswhere.nuproj

This file was deleted.

28 changes: 28 additions & 0 deletions pkg/vswhere/vswhere.nuspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>vswhere</id>
<version>$Version$</version>
<title>Visual Studio Locator</title>
<authors>Microsoft Corporation</authors>
<owners>Microsoft Corporation</owners>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<licenseUrl>https://github.com/Microsoft/vswhere/tree/$CommitId$/LICENSE.txt</licenseUrl>
<projectUrl>https://github.com/Microsoft/vswhere</projectUrl>
<description>Locate Visual Studio 2017 and newer installations</description>
<summary>Locate Visual Studio 2017 and newer installations</summary>
<copyright>Copyright (C) Microsoft Corporation. All rights reserved.</copyright>
<tags>vs vs2017 visualstudio</tags>
<developmentDependency>true</developmentDependency>
<!--packageSourceUrl>https://github.com/Microsoft/vswhere/tree/$CommitId$/pkg/vswhere</packageSourceUrl-->
<!--docsUrl>https://github.com/Microsoft/vswhere/wiki</docsUrl-->
<!--bugTrackerUrl>https://github.com/Microsoft/vswhere/issues</bugTrackerUrl-->
<!--projectSourceUrl>https://github.com/Microsoft/vswhere/tree/$CommitId$</projectSourceUrl-->
</metadata>
<files>
<file src="build\vswhere.props" target="build\"/>
<file src="..\..\bin\$Configuration$\vswhere.exe" target="tools\"/>
<file src="..\..\LICENSE.txt" target="tools\"/>
<file src="tools\VERIFICATION.txt" target="tools\"/>
</files>
</package>
9 changes: 0 additions & 9 deletions vswhere.sln
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
README.md = README.md
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "pkg", "pkg", "{A2C0B2B6-0E25-4A8D-96F6-9F44C615AE00}"
EndProject
Project("{FF286327-C783-4F7A-AB73-9BCBAD0D4460}") = "vswhere", "pkg\vswhere\vswhere.nuproj", "{87C09CE6-BA2D-4FC3-92E4-44253E87CB69}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|x86 = Debug|x86
Expand All @@ -41,10 +37,6 @@ Global
{4CCF39CB-4794-44E2-AA57-D215F13CF606}.Debug|x86.Build.0 = Debug|Win32
{4CCF39CB-4794-44E2-AA57-D215F13CF606}.Release|x86.ActiveCfg = Release|Win32
{4CCF39CB-4794-44E2-AA57-D215F13CF606}.Release|x86.Build.0 = Release|Win32
{87C09CE6-BA2D-4FC3-92E4-44253E87CB69}.Debug|x86.ActiveCfg = Debug|Any CPU
{87C09CE6-BA2D-4FC3-92E4-44253E87CB69}.Debug|x86.Build.0 = Debug|Any CPU
{87C09CE6-BA2D-4FC3-92E4-44253E87CB69}.Release|x86.ActiveCfg = Release|Any CPU
{87C09CE6-BA2D-4FC3-92E4-44253E87CB69}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand All @@ -53,6 +45,5 @@ Global
{210864F0-9A29-4479-B830-B802EE3F4D92} = {20C5861F-C1E5-4BFB-B082-209793FBDCA5}
{76268871-D5A5-46BD-9805-41DB1C3072D1} = {2F0C5F28-FD43-4045-85E8-BBD98B6B66B5}
{4CCF39CB-4794-44E2-AA57-D215F13CF606} = {20C5861F-C1E5-4BFB-B082-209793FBDCA5}
{87C09CE6-BA2D-4FC3-92E4-44253E87CB69} = {A2C0B2B6-0E25-4A8D-96F6-9F44C615AE00}
EndGlobalSection
EndGlobal

0 comments on commit de001a1

Please sign in to comment.