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?