Skip to content

Version 1.17.0 breaks solution builds using no-incremental #2284

@skystedt

Description

@skystedt

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

  1. Create a solution with a new functions project
    • Functions worker: .NET 8.0 Isolated
    • Function: Empty
  2. Add a xunit test project
  3. Add a project reference in the test project targeting the functions project
  4. Use Microsoft.Azure.Functions.Worker.Sdk 1.17.0
  5. build with: dotnet build --no-incremental solution.sln

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions