[Tizen] Add BuildTools 2.1.0-rc1-02804-05
[platform/upstream/coreclr.git] / Tools / dotnetcli / sdk / 2.1.2 / Sdks / Microsoft.NET.Sdk.Publish / build / netstandard1.0 / ComputeTargets / Microsoft.NET.Sdk.Publish.ComputeFiles.targets
1 <!--
2 ***********************************************************************************************
3 Microsoft.NET.Sdk.Publish.ComputeFiles.targets
4
5 WARNING:  DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have
6           created a backup copy.  Incorrect changes to this file will make it
7           impossible to load or build your web deploy projects from the command-line or the IDE.
8
9 This file defines the steps in the standard package/publish process for collecting only files to run the web appliation.
10
11 Copyright (C) Microsoft Corporation. All rights reserved.
12 ***********************************************************************************************
13 -->
14 <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
15
16   <!-- Only the compute target relevant to the project type will be invoked.  -->
17   <PropertyGroup>
18     <_DotNetPublishComputeFiles>
19       _DetermineProjectType;
20     </_DotNetPublishComputeFiles>
21   </PropertyGroup>
22
23
24   <!--***************************************************************-->
25   <!-- Target _DetermineProjectType                                  -->
26   <!--***************************************************************-->
27
28   <Target Name="_DetermineProjectType" >
29     <PropertyGroup>
30       <_IsAspNetCoreProject Condition="%(ProjectCapability.Identity) == 'AspNetCore'">true</_IsAspNetCoreProject>
31       <_PublishProjectType Condition="'$(_PublishProjectType)' == '' and '$(_IsAspNetCoreProject)' == 'true' ">AspNetCore</_PublishProjectType>
32       <_PublishProjectType Condition="'$(_PublishProjectType)' == '' and '$(WebJobName)' != '' and '$(WebJobType)' != ''">WebJob</_PublishProjectType>
33       <_PublishProjectType Condition="'$(_PublishProjectType)' == '' ">UnKnown</_PublishProjectType>
34     </PropertyGroup>
35   </Target>
36
37   <!--********************************************************************-->
38   <!-- This will ensure that all values have the required metadata        -->
39   <!--********************************************************************-->
40   <ItemDefinitionGroup>
41     <DotNetPublishFiles>
42       <DestinationRelativePath></DestinationRelativePath>
43       <Exclude>False</Exclude>
44     </DotNetPublishFiles>
45   </ItemDefinitionGroup>
46
47
48   <!--***************************************************************-->
49   <!-- Target _IncludePrePublishGeneratedContent                     -->
50   <!--***************************************************************-->
51   
52   <Target Name="_IncludePrePublishGeneratedContent" BeforeTargets="GetCopyToPublishDirectoryItems" Condition=" '$(EnableDefaultItems)' == 'true' And '$(EnableDefaultContentItems)' == 'true' ">
53     <ItemGroup>
54       <_WebProjectGeneratedContent Include="wwwroot\**" Exclude="$(DefaultItemExcludes);$(DefaultExcludesInProjectFolder);@(_ContentIncludedByDefault)" />
55       <ContentWithTargetPath Include="@(_WebProjectGeneratedContent)" TargetPath="%(Identity)" CopyToPublishDirectory="PreserveNewest" />
56     </ItemGroup>
57   </Target>
58   
59 </Project>