Skip to content
This repository has been archived by the owner on Mar 20, 2019. It is now read-only.

Commit

Permalink
Enhanced nuget.proj to output the names of the packages it produces.
Browse files Browse the repository at this point in the history
  • Loading branch information
AArnott committed Apr 15, 2012
1 parent d4259e8 commit 0c230bc
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions nuget/nuget.proj
Expand Up @@ -49,23 +49,33 @@
</PropertyGroup>
</Target>

<Target Name="Build" DependsOnTargets="BuildIntermediates">
<Target Name="Build" DependsOnTargets="BuildIntermediates" Returns="@(NuGetPackages)">
<ItemGroup>
<NuGetPackages Include="*.nuspec" Exclude="DotNetOpenAuth.nuspec">
<NuGetSpecifications Include="*.nuspec" Exclude="*oauth2*.nuspec;DotNetOpenAuth.nuspec">
<Symbols>true</Symbols>
</NuGetPackages>
<NuGetPackages Include="DotNetOpenAuth.nuspec" />
<PackageVersion>$(NuGetPackageVersion)</PackageVersion>
</NuGetSpecifications>
<NuGetSpecifications Include="*oauth2*.nuspec" Exclude="DotNetOpenAuth.nuspec">
<Symbols>true</Symbols>
<PackageVersion>$(OAuth2PackagesVersion)</PackageVersion>
</NuGetSpecifications>
<NuGetSpecifications Include="DotNetOpenAuth.nuspec">
<PackageVersion>$(NuGetPackageVersion)</PackageVersion>
</NuGetSpecifications>

<NuGetPackages Include="@(NuGetSpecifications->'$(DropsRoot)%(FileName).%(PackageVersion).nupkg')" />

<NuGetProperties Include="version=$(NuGetPackageVersion)" />
<NuGetProperties Include="oauth2version=$(OAuth2PackagesVersion)" />
<NuGetProperties Include="OutputPath35=$(OutputPath35)" />
<NuGetProperties Include="OutputPath40=$(OutputPath40)" />
</ItemGroup>

<NuGetPack
NuSpec="%(NuGetPackages.Identity)"
NuSpec="%(NuGetSpecifications.Identity)"
OutputPackageDirectory="$(DropsRoot)"
Properties="@(NuGetProperties)"
Symbols="%(NuGetPackages.Symbols)"
Symbols="%(NuGetSpecifications.Symbols)"
ToolPath="$(NuGetToolPath)" />
</Target>

Expand Down

0 comments on commit 0c230bc

Please sign in to comment.