forked from dotnet/aspnet-api-versioning
-
Notifications
You must be signed in to change notification settings - Fork 0
/
after.apiversioning.sln.targets
34 lines (25 loc) · 1.28 KB
/
after.apiversioning.sln.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
32
33
34
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="build\signing.targets" />
<Target Name="AfterSolutionBuild" AfterTargets="Build">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<BuildProperties>Configuration=$(Configuration)</BuildProperties>
<BuildProperties Condition=" ('$(Platform)' != '') AND ('$(Platform)' != 'AnyCPU') AND ('$(Platform)' != 'Any CPU') ">$(BuildProperties);Platform=$(Platform)</BuildProperties>
</PropertyGroup>
<ItemGroup>
<Projects Include="src\**\*.csproj" />
</ItemGroup>
<MSBuild Projects="@(Projects)" Targets="GetTargetPaths" Properties="$(BuildProperties)" UnloadProjectsOnCompletion="true">
<Output TaskParameter="TargetOutputs" ItemName="TargetFiles" />
</MSBuild>
<PropertyGroup>
<!-- transform list to pipe-separated values so we can forward it as a parameter using a build property -->
<SigningProperties>
SourceDir=$(MSBuildThisFileDirectory)\src;
FilesToSign=@(TargetFiles->'%(Identity)','|')
</SigningProperties>
</PropertyGroup>
<MSBuild Projects ="$(MSBuildThisFileFullPath)" Targets="WriteCodeSigningFileList" Properties="$(SigningProperties)" />
</Target>
</Project>