Add deleted files at the time of publishing ASP.NET Core

0

In my Asp.Net Core project I have some files excluded from the project.

OnlywhenIpublishthesefilesdonotappearinthewwwrootfolderoftheproject.

<ItemGroup><NoneInclude="wwwroot\Features\**" CopyToOutputDirectory="Always" />
  <!-- CopyToOutputDirectory = { Always, PreserveNewest, Never } -->

  <Content Include="wwwroot\Features\**" CopyToPublishDirectory="Never" />
  <None Include="wwwroot\Features\**" CopyToPublishDirectory="Never" />
  <!-- CopyToPublishDirectory = { Always, PreserveNewest, Never } -->
</ItemGroup>

With this code I tried to add those files during the publication, but it did not work.

NOTE: This folder may not be visible in the project, but should be published.

Can anyone help me or tell me what I'm doing wrong?

    
asked by anonymous 01.10.2018 / 20:03

0 answers