Description
Building a solution with flag --no-incremental while having a test project referencing a functions project will result in the build failing with
MSB3030: Could not copy the file "obj\Debug\net8.0\extensions.json" because it was not found.
Using Microsoft.Azure.Functions.Worker.Sdk 1.16.4 => works
Using Microsoft.Azure.Functions.Worker.Sdk 1.17.0 => does not work
Building without any flags => works
Building with --no-incremental => does not work.
Building each individual project => works
Building the solution => does not work
Steps to reproduce
- Create a solution with a new functions project
- Functions worker: .NET 8.0 Isolated
- Function: Empty
- Add a xunit test project
- Add a project reference in the test project targeting the functions project
- Use
Microsoft.Azure.Functions.Worker.Sdk 1.17.0
- build with:
dotnet build --no-incremental solution.sln
Description
Building a solution with flag
--no-incrementalwhile having a test project referencing a functions project will result in the build failing withMSB3030: Could not copy the file "obj\Debug\net8.0\extensions.json" because it was not found.Using Microsoft.Azure.Functions.Worker.Sdk 1.16.4 => works
Using Microsoft.Azure.Functions.Worker.Sdk 1.17.0 => does not work
Building without any flags => works
Building with
--no-incremental=> does not work.Building each individual project => works
Building the solution => does not work
Steps to reproduce
Microsoft.Azure.Functions.Worker.Sdk1.17.0dotnet build --no-incremental solution.sln