19c53603cdf728e100ecbae00d1602e3a5ea40af
[platform/core/dotnet/build-tools.git] /
1 <!--\r
2 ***********************************************************************************************\r
3 Microsoft.NET.Sdk.Web.ProjectSystem.props\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 projects from the command-line or the IDE.\r
8 \r
9 Copyright (c) .NET Foundation. All rights reserved. \r
10 ***********************************************************************************************\r
11 -->\r
12 \r
13 <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">\r
14   <PropertyGroup>\r
15     <DefaultItemExcludes>$(DefaultItemExcludes);**\node_modules\**;node_modules\**</DefaultItemExcludes>\r
16     <DefaultItemExcludes>$(DefaultItemExcludes);**\jspm_packages\**;jspm_packages\**</DefaultItemExcludes>\r
17     <DefaultItemExcludes>$(DefaultItemExcludes);**\bower_components\**;bower_components\**</DefaultItemExcludes>\r
18     <OutputType>Exe</OutputType>\r
19     <DebugSymbols Condition="'$(DebugSymbols)' == ''">true</DebugSymbols>\r
20     <DebugType Condition="'$(DebugType)' == ''">pdbonly</DebugType>\r
21     <PreserveCompilationContext Condition="'$(PreserveCompilationContext)' == ''">true</PreserveCompilationContext>\r
22     <ServerGarbageCollection>true</ServerGarbageCollection>\r
23     <IsPackable Condition="'$(IsPackable)' == ''">false</IsPackable>\r
24     <MvcRazorCompileOnPublish>true</MvcRazorCompileOnPublish>\r
25   </PropertyGroup>\r
26 \r
27   <ItemGroup Condition=" '$(EnableDefaultItems)' == 'true' And '$(EnableDefaultContentItems)' == 'true' ">\r
28     <!-- Publish everything under wwwroot, all JSON files, all config files and all Razor files -->\r
29     <Content Include="wwwroot\**" CopyToPublishDirectory="PreserveNewest" Exclude="$(DefaultItemExcludes);$(DefaultExcludesInProjectFolder)" />\r
30     <Content Include="**\*.config" CopyToPublishDirectory="PreserveNewest" Exclude="$(DefaultItemExcludes);$(DefaultExcludesInProjectFolder);wwwroot\**" />\r
31     <Content Include="**\*.cshtml" CopyToPublishDirectory="PreserveNewest" Exclude="$(DefaultItemExcludes);$(DefaultExcludesInProjectFolder);wwwroot\**" />\r
32     <Content Include="**\*.json" CopyToPublishDirectory="PreserveNewest" Exclude="$(DefaultItemExcludes);$(DefaultExcludesInProjectFolder);wwwroot\**" />\r
33 \r
34     <!-- Set CopyToPublishDirectory to Never for items under AppDesignerFolder ("Properties", by default) to avoid publishing launchSettings.json -->\r
35     <Content Update="$(AppDesignerFolder)/**" CopyToPublishDirectory="Never" Condition="'$(AppDesignerFolder)' != ''"/>\r
36     \r
37     <!-- Remove Content items from other item types (in a way that CPS understands) -->\r
38     <None Remove="wwwroot\**;**\*.json;**\*.config;**\*.cshtml" />\r
39     <Compile Remove="wwwroot\**" />\r
40     <EmbeddedResource Remove="wwwroot\**" />\r
41     \r
42     <!-- Keep track of the default content items for later to distinguish them from newly generated content items -->\r
43     <_ContentIncludedByDefault Include="@(Content)" />\r
44 \r
45   </ItemGroup>\r
46 \r
47 </Project>\r
48 \r