2 ***********************************************************************************************
\r
3 Microsoft.NET.Sdk.Web.ProjectSystem.props
\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
9 Copyright (c) .NET Foundation. All rights reserved.
\r
10 ***********************************************************************************************
\r
13 <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
\r
15 <DefaultItemExcludes>$(DefaultItemExcludes);**/node_modules/**</DefaultItemExcludes>
\r
16 <DefaultItemExcludes>$(DefaultItemExcludes);**/jspm_packages/**</DefaultItemExcludes>
\r
17 <DefaultItemExcludes>$(DefaultItemExcludes);**/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
26 <ItemGroup Condition=" '$(EnableDefaultItems)' == 'true' And '$(EnableDefaultContentItems)' == 'true' ">
\r
27 <!-- Publish everything under wwwroot, all JSON files, all web.config files and all Razor files -->
\r
28 <Content Include="wwwroot/**" CopyToPublishDirectory="PreserveNewest" Exclude="$(DefaultItemExcludes);$(DefaultExcludesInProjectFolder)" />
\r
29 <Content Include="**/web.config" CopyToPublishDirectory="PreserveNewest" Exclude="$(DefaultItemExcludes);$(DefaultExcludesInProjectFolder);wwwroot/**" />
\r
30 <Content Include="**/*.cshtml" CopyToPublishDirectory="PreserveNewest" Exclude="$(DefaultItemExcludes);$(DefaultExcludesInProjectFolder);wwwroot/**" />
\r
31 <Content Include="**/*.json" CopyToPublishDirectory="PreserveNewest" Exclude="$(DefaultItemExcludes);$(DefaultExcludesInProjectFolder);wwwroot/**" />
\r
33 <!-- Set CopyToPublishDirectory to Never for items under AppDesignerFolder ("Properties", by default) to avoid publishing launchSettings.json -->
\r
34 <Content Update="$(AppDesignerFolder)/**" CopyToPublishDirectory="Never" Condition="'$(AppDesignerFolder)' != ''"/>
\r
36 <!-- Remove Content items from other item types (in a way that CPS understands) -->
\r
37 <None Remove="wwwroot/**;**/*.json;**/web.config;**/*.cshtml" />
\r
38 <Compile Remove="wwwroot/**" />
\r
39 <EmbeddedResource Remove="wwwroot/**" />
\r
41 <!-- Keep track of the default content items for later to distinguish them from newly generated content items -->
\r
42 <_ContentIncludedByDefault Include="@(Content)" />
\r