<ItemGroup>
<Content Include="YourFolder\Reference1.pdf"/>
<Content Include="YourFolder\Reference2.pdf"/>
......
</ItemGroup>
Using IDE does the modification for you.
If these pdf files are in one folder, we can try to use MSBuild to copy this folder to OutPut directory in Web Deployment project.
To do so, we need to enter Web Deployment project file by right clicking Web Deployment project in Solution Window and selecting "Open Project File", and then write following command below "Import" section:
<Target Name="AfterBuild">
<Copy DestinationFolder="YourDestinationfolder" SourceFiles="YourSourcefile"></Copy>
</Target>
Example
<Copy DestinationFolder="Guides" SourceFiles="Guides\*.pdf"></Copy>
Or
<Copy DestinationFolder="$(OutputPath)\Guides\" SourceFiles="$(SourceWebPhysicalPath)\Guides\*.pdf"></Copy>
No comments:
Post a Comment