forked from SpecFlowOSS/SpecFlow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Directory.Build.targets
31 lines (29 loc) · 1.81 KB
/
Directory.Build.targets
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<Project>
<Target Name="SetNuspecProperties" BeforeTargets="GenerateNuspec" DependsOnTargets="GetBuildVersion">
<PropertyGroup>
<NuspecProperties>$(NuspecProperties);config=$(Configuration)</NuspecProperties>
<NuspecProperties>$(NuspecProperties);version=$(NuGetPackageVersion)</NuspecProperties>
<NuspecProperties>$(NuspecProperties);SolutionDir=$(SolutionDir)</NuspecProperties>
<NuspecProperties>$(NuspecProperties);copyright=$(SpecFlow_Copyright)</NuspecProperties>
<NuspecProperties>$(NuspecProperties);author=$(SpecFlow_Authors)</NuspecProperties>
<NuspecProperties>$(NuspecProperties);owner=$(SpecFlow_Owners)</NuspecProperties>
<NuspecProperties>$(NuspecProperties);SpecFlow_FullFramework_Runtime_TFM=$(SpecFlow_FullFramework_Runtime_TFM)</NuspecProperties>
<NuspecProperties>$(NuspecProperties);SpecFlow_Core_Runtime_TFM=$(SpecFlow_Core_Runtime_TFM)</NuspecProperties>
<NuspecProperties>$(NuspecProperties);SpecFlow_FullFramework_Generator_TFM=$(SpecFlow_FullFramework_Generator_TFM)</NuspecProperties>
<NuspecProperties>$(NuspecProperties);SpecFlow_Core_Generator_TFM=$(SpecFlow_Core_Generator_TFM)</NuspecProperties>
<NuspecProperties>$(NuspecProperties);SpecFlow_Core_Tools_TFM=$(SpecFlow_Core_Tools_TFM)</NuspecProperties>
</PropertyGroup>
</Target>
<Target Name="CleanupNupkgs" BeforeTargets="Build" >
<ItemGroup>
<Nupkgs2Delete Include="$(PackageOutputAbsolutePath)\*.nupkg"/>
</ItemGroup>
<Delete Files="@(Nupkgs2Delete)" />
</Target>
<Target Name="CopyNupkgToFolder" AfterTargets="Pack">
<ItemGroup>
<GeneratedNupkgs Include="$(PackageOutputAbsolutePath)\*.nupkg"/>
</ItemGroup>
<Copy SourceFiles="@(GeneratedNupkgs)" DestinationFolder="$(SolutionDir)GeneratedNuGetPackages\$(Configuration)" />
</Target>
</Project>