We have a .NET Core/C# WebAPI that we publish using Visual Studio to an Azure App Service.
When we click publish in Visual Studio then DLLs and PDF documents are copied over to Azure.
The PDF documents are included in the Visual Studio csproj file and have setting "Copy to output directory = Copy if newer". There are many PDF files that never change and the publish is slow because of these files.
How can we either
- only publish what has changed
- separate publishing the DLLs from publishing the PDFs