-
Notifications
You must be signed in to change notification settings - Fork 0
/
ExtendType.OfType.msbuild
24 lines (24 loc) · 1.14 KB
/
ExtendType.OfType.msbuild
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<Project DefaultTargets="Package" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<PropertyGroup>
<Configuration Condition="'$(Configuration)' == ''">Release</Configuration>
</PropertyGroup>
<ItemGroup>
<Package Include="ExtendType.OfType\ExtendType.OfType.csproj"/>
<Specification Include="ExtendType.OfType.nuspec"/>
<FrameworkVersion Include="v4.5">
<PackagePath>net45</PackagePath>
</FrameworkVersion>
<FrameworkVersion Include="v4.0">
<PackagePath>net40</PackagePath>
</FrameworkVersion>
<FrameworkVersion Include="v3.5">
<PackagePath>net35</PackagePath>
</FrameworkVersion>
</ItemGroup>
<Target Outputs="@(FrameworkVersion.Identity)" Name="Build">
<MSBuild Projects="@(Package)" Properties="Configuration=$(Configuration);TargetFrameworkVersion=%(FrameworkVersion.Identity);OutDir=..\lib\%(FrameworkVersion.PackagePath)"/>
</Target>
<Target Outputs="@(Specification.Identity)" Name="Package" DependsOnTargets="Build">
<Exec Command="..\.nuget\nuget.exe pack "%(Specification.Identity)" -OutputDirectory "Packaged""/>
</Target>
</Project>