I did this for a web api project (not a dot dot core), in which Angular 6 had an external interface. My visual studio version was 2017.
I created a wwwroot folder which I wwwroot corner files using custom build actions, and this folder was not included in my project.
I edited the project file and added these lines.
<PropertyGroup> <PipelineCollectFilesPhaseDependsOn> CustomCollectFiles; $(PipelineCollectFilesPhaseDependsOn); </PipelineCollectFilesPhaseDependsOn> </PropertyGroup> <Target Name="CustomCollectFiles"> <Message Text="Inside of CustomCollectFiles" Importance="high" /> <ItemGroup> <_CustomFiles Include="wwwroot\**\*" /> <FilesForPackagingFromProject Include="%(_CustomFiles.Identity)"> <DestinationRelativePath>wwwroot\%(RecursiveDir)%(Filename)%(Extension)</DestinationRelativePath> </FilesForPackagingFromProject> </ItemGroup> </Target>
Abdul Rehman Sayed
source share