I've migrated an asp.net core project to VS2017 RC, which now supports the ability to exclude files from a project. I've excluded two folders, which added these lines to my csproj file:
<ItemGroup>
<Content Remove="wwwroot\dist\**" />
<Content Remove="wwwroot\lib\**" />
</ItemGroup>
This works great, except now those files don't get published anymore. How do I exclude these folders from the project but still include them on publish?
Best Answer
The following msbuild items taken from the dotnet new spa templates helped me to achieve what I believe you are after: