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 cs
The following msbuild items taken from the dotnet new spa templates helped me to achieve what I believe you are after:
%(DistFiles.Identity) PreserveNewest