Azure / azure-functions-vs-build-sdk

MSBuild task for Azure Functions
MIT License
99 stars 66 forks source link

Including EntityFramework 6.4.4 in Azure Function V1 won't build with Microsoft.Net.Sdk.Functions V3.0.10 and higher #488

Open jeroenbeuz opened 3 years ago

jeroenbeuz commented 3 years ago

I'm creating a new Azure Function V1 app which references EntityFramework V6.4.4. The solution won't build when I update the Microsoft.Net.Sdk.Functions package to 3.0.10 or 3.0.11. It does not throw an error, it's just stuck in the build process and I have to kill it in Task Manager because cancelling the build in Visual Studio doesn't work.

I've tried this in multiple new projects so it's very easy to reproduce:

  1. Create new Azure Function V1 on a Service Bus Topic Trigger
  2. Update the Microsoft.Net.Sdk.Functions package to 3.0.10 or 3.0.11
  3. Add EntityFramework 6.4.4
  4. Build the project, it will get stuck during the build and cancelling won't work

I'm using Visual Studio 2019 Version 16.8.2. Downgrading the Microsoft.Net.Sdk.Functions to 3.0.9 is a workaround for this problem.

BrendanGrant commented 3 years ago

+1 on this.

I've found this also can/will cause an Azure DevOps pipeline to run for another before being killed on a work project, and similar issues at home on personal if using the wrong/latest versions.