c# project copy to server all files directory after build code example
Example: .net core copy directory to output
<ItemGroup>
<None Include="$(SolutionDir)config\**"
CopyToOutputDirectory="PreserveNewest"
LinkBase="config\" />
</ItemGroup>