Skip to content
This repository has been archived by the owner on Feb 15, 2023. It is now read-only.

Commit

Permalink
Explicitly exclude items from default content include instead of rely…
Browse files Browse the repository at this point in the history
…ing on .NET SDK to remove them

Corresponds with dotnet/sdk#630
  • Loading branch information
dsplaisted committed Jan 11, 2017
1 parent b7529e1 commit 5816b90
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@ Copyright (c) .NET Foundation. All rights reserved.

<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<DefaultRemoves>$(DefaultRemoves);node_modules/**</DefaultRemoves>
<DefaultRemoves>$(DefaultRemoves);jspm_packages/**</DefaultRemoves>
<DefaultRemoves>$(DefaultRemoves);bower_components/**</DefaultRemoves>
<DefaultItemExcludes>$(DefaultItemExcludes);node_modules/**</DefaultItemExcludes>
<DefaultItemExcludes>$(DefaultItemExcludes);jspm_packages/**</DefaultItemExcludes>
<DefaultItemExcludes>$(DefaultItemExcludes);bower_components/**</DefaultItemExcludes>

<OutputType>Exe</OutputType>
<PreserveCompilationContext Condition="'$(PreserveCompilationContext)' == ''">True</PreserveCompilationContext>
</PropertyGroup>

<ItemGroup Condition=" '$(EnableDefaultItems)' == 'true' And '$(EnableDefaultContentItems)' == 'true' ">
<!-- Publish everything under wwwroot, all JSON files, all web.config files and all Razor files -->
<Content Include="wwwroot/**;**/*.json;**/web.config;**/*.cshtml" CopyToPublishDirectory="PreserveNewest" />
<Content Include="wwwroot/**;**/*.json;**/web.config;**/*.cshtml" CopyToPublishDirectory="PreserveNewest" Exclude="$(DefaultItemExcludes);$(DefaultExcludesInProjectFolder)" />

<!-- Set CopyToPublishDirectory to Never for items under AppDesignerFolder ("Properties", by default) to avoid publishing launchSettings.json -->
<Content Update="$(AppDesignerFolder)/**" CopyToPublishDirectory="Never" Condition="'$(AppDesignerFolder)' != ''"/>
Expand Down

0 comments on commit 5816b90

Please sign in to comment.