<!--
***********************************************************************************************
Microsoft.NET.Sdk.Publish.FilterFiles.targets

WARNING:  DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have
          created a backup copy.  Incorrect changes to this file will make it
          impossible to load or build your web deploy projects from the command-line or the IDE.

This file defines the steps in the standard package/publish process for collecting only files to run the web appliation.

Copyright (C) Microsoft Corporation. All rights reserved.
***********************************************************************************************
-->
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

  <!--********************************************************************-->
  <!-- Target _FilterIISAssets -->
  <!--********************************************************************-->
  <Target Name="_FilterIISAssets"
          Condition="'$(PublishIISAssets)' == 'false'"
          AfterTargets="ComputeResolvedFilesToPublishList"
          BeforeTargets="CopyFilesToPublishDirectory">

    <ItemGroup>
      <ResolvedFileToPublish Update="@(ResolvedFileToPublish)"
      Condition="'%(Filename)%(Extension)' == 'aspnetcorev2_inprocess.dll'">
        <CopyToPublishDirectory>Never</CopyToPublishDirectory>
      </ResolvedFileToPublish>

      <ResolvedFileToPublish Update="@(ResolvedFileToPublish)"
        Condition="'%(Filename)%(Extension)' == 'web.config'">
        <CopyToPublishDirectory>Never</CopyToPublishDirectory>
      </ResolvedFileToPublish>
    </ItemGroup>

  </Target>
</Project>
