Unpack dotnet sdk zipfile and add documentation file to nupkg
[platform/core/dotnet/build-tools.git] / dotnet / sdk / 2.0.0-preview1-005700 / Sdks / Microsoft.NET.Sdk.Publish / build / netstandard1.0 / PublishTargets / Microsoft.NET.Sdk.Publish.FileSystem.targets
1 <!--\r
2 ***********************************************************************************************\r
3 Microsoft.NET.Sdk.Publish.FileSystem.targets\r
4 \r
5 WARNING:  DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have\r
6           created a backup copy.  Incorrect changes to this file will make it\r
7           impossible to load or build your web deploy projects from the command-line or the IDE.\r
8 \r
9 This file defines the steps in the standard build process to deploy web application projects.\r
10 \r
11 Copyright (C) Microsoft Corporation. All rights reserved.\r
12 ***********************************************************************************************\r
13 -->\r
14 \r
15 <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">\r
16   \r
17   <PropertyGroup>\r
18     <_DotNetPublishFiles>\r
19       FileSystemPublish;\r
20     </_DotNetPublishFiles>\r
21   </PropertyGroup>\r
22 \r
23   <!--\r
24   ***********************************************************************************************\r
25   TARGET : FileSystemPublish\r
26   ***********************************************************************************************\r
27  -->\r
28   <PropertyGroup>\r
29     <FileSystemPublishDependsOn>\r
30       $(FileSystemPublishDependsOn);\r
31       _DeleteDestinationFilesIfSpecified;\r
32       _CopyEntityFrameworkScripts;\r
33       _GatherFilesFromPublishIntermediateOutputPath;\r
34     </FileSystemPublishDependsOn>\r
35   </PropertyGroup>\r
36 \r
37   <Target Name="FileSystemPublish" \r
38           DependsOnTargets="$(FileSystemPublishDependsOn)"\r
39           Inputs="@(_PublishIntermediateOutputPathFiles)"\r
40           Outputs="@(_PublishIntermediateOutputPathFiles ->'$(PublishUrl)%(RecursiveDir)%(Filename)%(Extension)')">\r
41 \r
42     <Copy\r
43         SourceFiles="@(_PublishIntermediateOutputPathFiles)"\r
44         DestinationFiles="@(_PublishIntermediateOutputPathFiles ->'$(PublishUrl)%(RecursiveDir)%(Filename)%(Extension)')" />\r
45     \r
46   </Target>\r
47 \r
48   <!--\r
49   ***********************************************************************************************\r
50   TARGET : _DeleteDestinationFilesIfSpecified\r
51   ***********************************************************************************************\r
52  -->\r
53 \r
54   <Target Name="_DeleteDestinationFilesIfSpecified">\r
55     <PropertyGroup>\r
56       <PublishUrl Condition="'$(PublishUrl)' != '' And !HasTrailingSlash('$(PublishUrl)')">$(PublishUrl)\</PublishUrl>\r
57     </PropertyGroup>\r
58 \r
59     <ItemGroup>\r
60       <_DestinationFiles Include="$(PublishUrl)**\*" />\r
61     </ItemGroup>\r
62 \r
63     <Delete\r
64       Files="@(_DestinationFiles)"\r
65       Condition="'$(DeleteExistingFiles)' == 'true'" />\r
66 \r
67     <RemoveDir\r
68       Directories="$(PublishUrl)"\r
69       Condition="'$(DeleteExistingFiles)' == 'true' And Exists('$(PublishUrl)')" />\r
70 \r
71     <MakeDir\r
72       Directories="$(PublishUrl)"\r
73       Condition="'$(DeleteExistingFiles)' == 'true' And !Exists('$(PublishUrl)')"/>\r
74   </Target>\r
75 \r
76   <!--\r
77   ***********************************************************************************************\r
78   TARGET : _GatherFilesFromPublishIntermediateOutputPath\r
79   ***********************************************************************************************\r
80  -->\r
81   <Target Name="_GatherFilesFromPublishIntermediateOutputPath">\r
82     <ItemGroup>\r
83       <_PublishIntermediateOutputPathFiles Include="$(PublishIntermediateOutputPath)**\*.*" />\r
84     </ItemGroup>\r
85   </Target>\r
86 \r
87   <!--\r
88   ***********************************************************************************************\r
89   TARGET : _CopyEntityFrameworkScripts\r
90   ***********************************************************************************************\r
91  -->\r
92   <Target Name="_CopyEntityFrameworkScripts">\r
93 \r
94     <Copy\r
95     Condition="@(_EFSQLScripts) != ''"\r
96     SourceFiles="@(_EFSQLScripts)"\r
97     DestinationFiles="@(_EFSQLScripts ->'$(PublishIntermediateOutputPath)$(EFSQLScriptsFolderName)\%(Filename)%(Extension)')" \r
98     ContinueOnError="true"/>\r
99   </Target>\r
100   \r
101 </Project>\r