Azure Functions .NET 8 – Files copied to bin but missing from publish ZIP (obj folder)
02:01 17 Apr 2026

I'm working on an Azure Functions project targeting .NET 8

I have a Templates folder that I want to include in my deployment package.

Here is my .csproj configuration:

  
    
      PreserveNewest
    
    
      PreserveNewest
      Never
    
    
        PreserveNewest
        PreserveNewest

    
  

Problem:

  • The Templates (including the .docx files) folder is correctly copied to bin/Release/net8.0/

  • However, it is missing from the publish output / ZIP package (generated under obj or during deployment)

asp.net-core azure-functions msbuild .net-8.0