Build NuGet package with the build.

This commit is contained in:
Andrew Arnott 2015-02-14 20:55:22 -08:00
Родитель 77ce7662ab
Коммит 11c711851d
7 изменённых файлов: 65 добавлений и 43 удалений

1
.gitignore поставляемый
Просмотреть файл

@ -14,3 +14,4 @@ UpgradeLog.*
_UpgradeReport_Files
*.log
/src/.vs/
/src/Packages/

Просмотреть файл

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="NuProj" version="0.9.3-beta" />
</packages>

Просмотреть файл

@ -0,0 +1,46 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildProjectDirectory), EnlistmentInfo.props))\EnlistmentInfo.props" Condition=" '$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildProjectDirectory), EnlistmentInfo.props))' != '' " />
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|AnyCPU">
<Configuration>Debug</Configuration>
<Platform>AnyCPU</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|AnyCPU">
<Configuration>Release</Configuration>
<Platform>AnyCPU</Platform>
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup Label="Globals">
<ProjectGuid>c51acf4a-3e2c-44b2-99fc-1a838518c690</ProjectGuid>
</PropertyGroup>
<PropertyGroup>
<OutDir Condition=" '$(OutDir)' == ''" >$(ProjectDepotRoot)\bin\$(Configuration)\</OutDir>
<IntermediateOutputPath Condition=" '$(IntermediateOutputPath)' == '' ">$(ProjectDepotRoot)\obj\$(Configuration)\</IntermediateOutputPath>
<NuProjPath Condition=" '$(NuProjPath)' == '' ">..\packages\NuProj.0.9.3-beta\tools</NuProjPath>
</PropertyGroup>
<Import Project="$(NuProjPath)\NuProj.props" Condition="Exists('$(NuProjPath)\NuProj.props')" />
<PropertyGroup Label="Configuration">
<Id>Microsoft.VisualStudio.Validation</Id>
<Version>14.0.0</Version>
<Title>Microsoft.VisualStudio.Validation</Title>
<Authors>andarno</Authors>
<Owners>andarno</Owners>
<Summary>
</Summary>
<Description>Common input validation and state verification utility methods.</Description>
<ReleaseNotes>
</ReleaseNotes>
<ProjectUrl>
</ProjectUrl>
<LicenseUrl>
</LicenseUrl>
<Copyright>Copyright © Microsoft</Copyright>
<Tags>InputValidation IntegrityCheck</Tags>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\Microsoft.VisualStudio.Validation\Microsoft.VisualStudio.Validation.csproj" />
</ItemGroup>
<Import Project="$(NuProjPath)\NuProj.targets" />
</Project>

Просмотреть файл

@ -1,10 +1,17 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 12
VisualStudioVersion = 12.0.20328.0 VSPRO_PLATFORM
# Visual Studio 2013
VisualStudioVersion = 12.0.30421.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.VisualStudio.Validation", "Microsoft.VisualStudio.Validation\Microsoft.VisualStudio.Validation.csproj", "{E016A630-A79B-4B5D-8997-E66581D62B81}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".nuget", ".nuget", "{B7B2BF20-AA7A-4BAD-9D31-00C6D39CB3F5}"
ProjectSection(SolutionItems) = preProject
.nuget\packages.config = .nuget\packages.config
EndProjectSection
EndProject
Project("{FF286327-C783-4F7A-AB73-9BCBAD0D4460}") = "Microsoft.VisualStudio.Validation.NuPkg", "Microsoft.VisualStudio.Validation.NuPkg\Microsoft.VisualStudio.Validation.NuPkg.nuproj", "{C51ACF4A-3E2C-44B2-99FC-1A838518C690}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@ -15,6 +22,10 @@ Global
{E016A630-A79B-4B5D-8997-E66581D62B81}.Debug|Any CPU.Build.0 = Debug|Any CPU
{E016A630-A79B-4B5D-8997-E66581D62B81}.Release|Any CPU.ActiveCfg = Release|Any CPU
{E016A630-A79B-4B5D-8997-E66581D62B81}.Release|Any CPU.Build.0 = Release|Any CPU
{C51ACF4A-3E2C-44B2-99FC-1A838518C690}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C51ACF4A-3E2C-44B2-99FC-1A838518C690}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C51ACF4A-3E2C-44B2-99FC-1A838518C690}.Release|Any CPU.ActiveCfg = Release|Any CPU
{C51ACF4A-3E2C-44B2-99FC-1A838518C690}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE

Просмотреть файл

@ -1,23 +0,0 @@
<?xml version="1.0"?>
<package >
<metadata>
<id>Microsoft.Validation</id>
<version>$version$</version>
<title>Microsoft Validation</title>
<authors>Microsoft Corp.</authors>
<owners>Microsoft Corp.</owners>
<licenseUrl>http://lcaweb/</licenseUrl>
<projectUrl>file:////andarno4/public/git/Microsoft.Validation</projectUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>Common input validation and state verification utility methods.</description>
<releaseNotes></releaseNotes>
<copyright>Copyright 2012</copyright>
<tags>InputValidation IntegrityCheck</tags>
</metadata>
<files>
<file src="bin\v4.0\release\Microsoft.Validation.dll" target="lib\net40-client" />
<file src="bin\v4.0\release\Microsoft.Validation.xml" target="lib\net40-client" />
<file src="bin\v3.5\release\Microsoft.Validation.dll" target="lib\net35-client" />
<file src="bin\v3.5\release\Microsoft.Validation.xml" target="lib\net35-client" />
</files>
</package>

Просмотреть файл

@ -52,14 +52,9 @@
<LastGenOutput>Strings.Designer.cs</LastGenOutput>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<None Include="buildpkg.bat" />
<None Include="Microsoft.Validation.nuspec">
<SubType>Designer</SubType>
</None>
</ItemGroup>
<ItemGroup>
<Folder Include="Properties\" />
</ItemGroup>
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildProjectDirectory), EnlistmentInfo.targets))\EnlistmentInfo.targets" Condition=" '$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildProjectDirectory), EnlistmentInfo.targets))' != '' " />
<Import Project="..\packages\NuProj.0.9.3-beta\tools\Microsoft.Common.NuProj.targets" />
</Project>

Просмотреть файл

@ -1,12 +0,0 @@
@ECHO OFF
if "%1"=="" (
ECHO USAGE: %0 version
EXIT /b 1
)
msbuild "%~dp0Microsoft.Validation.csproj" /p:TargetFrameworkVersion=v3.5,Configuration=Release /v:minimal /nologo
msbuild "%~dp0Microsoft.Validation.csproj" /p:TargetFrameworkVersion=v4.0,Configuration=Release /v:minimal /nologo
@echo on
nuget pack "%~dp0Microsoft.Validation.nuspec" -symbols -OutputDirectory bin -Version %1