2 ***********************************************************************************************
\r
3 Microsoft.NET.Sdk.DotNetCLITool.targets
\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
9 This file defines the steps in the standard package/publish process for collecting only files to run the web appliation.
\r
11 Copyright (C) Microsoft Corporation. All rights reserved.
\r
12 ***********************************************************************************************
\r
14 <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
\r
17 <Target Name="_InitProjectCapabilityProperties">
\r
19 <_IsAspNetCoreProject Condition="%(ProjectCapability.Identity) == 'AspNetCore'">true</_IsAspNetCoreProject>
\r
24 ***********************************************************************************************
\r
25 TARGET : DotNet CLI Publish Command : Pre-Publish
\r
26 ***********************************************************************************************
\r
30 <_DotNetCLIPrePublishDependsOn>
\r
31 _InitProjectCapabilityProperties;
\r
32 _AspNetCoreProjectSystemPrePublish;
\r
33 </_DotNetCLIPrePublishDependsOn>
\r
36 <Target Name ="_DotNetCLIPrePublish"
\r
37 DependsOnTargets="$(_DotNetCLIPrePublishDependsOn)"
\r
38 BeforeTargets="PrepareForPublish"
\r
39 Condition="'$(DeployOnBuild)' != 'true'">
\r
43 <_AspNetCoreProjectSystemPrePublishDependsOn>
\r
45 $(_DotNetPublishComputeFiles);
\r
46 </_AspNetCoreProjectSystemPrePublishDependsOn>
\r
49 <Target Name="_AspNetCoreProjectSystemPrePublish"
\r
50 Condition="'$(_IsAspNetCoreProject)' == 'true'"
\r
51 DependsOnTargets="$(_AspNetCoreProjectSystemPrePublishDependsOn)">
\r
55 ***********************************************************************************************
\r
56 TARGET : DotNet CLI Publish Command: Post-Publish
\r
57 ***********************************************************************************************
\r
60 <_DotNetCLIPostPublishDependsOn>
\r
61 _InitProjectCapabilityProperties;
\r
62 _AspNetCoreProjectSystemPostPublish;
\r
64 </_DotNetCLIPostPublishDependsOn>
\r
67 <Target Name ="_DotNetCLIPostPublish"
\r
68 DependsOnTargets="$(_DotNetCLIPostPublishDependsOn)"
\r
69 AfterTargets="Publish"
\r
70 Condition="'$(DeployOnBuild)' != 'true'">
\r
75 <_AspNetCoreProjectSystemPostPublishDependsOn>
\r
76 _InitPublishIntermediateOutputPath;
\r
77 $(_DotNetPublishTransformFiles);
\r
79 </_AspNetCoreProjectSystemPostPublishDependsOn>
\r
82 <Target Name="_AspNetCoreProjectSystemPostPublish"
\r
83 Condition="'$(_IsAspNetCoreProject)' == 'true'"
\r
84 DependsOnTargets="$(_AspNetCoreProjectSystemPostPublishDependsOn)">
\r
87 <Target Name="_InitPublishIntermediateOutputPath">
\r
88 <ConvertToAbsolutePath Paths="$(PublishDir)">
\r
89 <Output TaskParameter="AbsolutePaths" PropertyName="PublishDirFullPath"/>
\r
90 </ConvertToAbsolutePath>
\r
93 <PublishIntermediateOutputPath>$(PublishDirFullPath)</PublishIntermediateOutputPath>
\r
98 <_PublishFilesDependsOn>
\r
99 $(_DotNetPublishFiles);
\r
100 </_PublishFilesDependsOn>
\r
103 <Target Name="_PublishFiles"
\r
104 DependsOnTargets="$(_PublishFilesDependsOn)"
\r
105 Condition="'$(PublishProtocol)' != 'FileSystem' And '$(PublishProtocol)' != ''">
\r