Azure / azure-functions-vs-build-sdk

MSBuild task for Azure Functions
MIT License
98 stars 65 forks source link

Build hangs with Microsoft.NET.Sdk.Functions version 4.1.3 #8843 #591

Open michaelelleby opened 1 year ago

michaelelleby commented 1 year ago

When building the solution in VS 2019 and VS 2022, the build just hangs.

When I run dotnet build -v d in the console, I see it gets stuck at the target _GenerateFunctionsExtensionsMetadataPostBuild

This is with .NET Framework 4.7.1 and upgrading to .NET 6 is not an option.

Log file from dotnet build build.log

I have created a tiny repo https://github.com/michaelelleby/functionappbug to demonstrate the bug.

ramya894 commented 1 year ago

@michaelelleby We are investigating the issue and update you the findings soon.

ramya894 commented 1 year ago

@soninaren Could you please have a look into the above issue.

ramya894 commented 1 year ago

@soninaren Can you please share your thoughts here.

fowl2 commented 1 year ago

possibly related to https://github.com/Azure/azure-functions-host/issues/8401 and/or https://github.com/Azure/Azure-Functions/issues/2108

vivlimmsft commented 1 year ago

I hit an issue like this, do you have the COREHOST_TRACE environment variable set? #604

ngoquoc commented 1 year ago

I had a similar issue, but with .NET 6 target, and .NET 7 SDK. Downgrading Microsoft.NET.Sdk.Functions from 4.1.3 to 4.0.1 helps.

Becold commented 1 year ago

I closed my Visual Studio 2022.. and started it again as an administrator. It worked for me. Hope this helps someone.

whit-wu commented 1 month ago

I am experiencing the same issue when upgrading from v1.0.24 to the next available version non-depreciated version (v1.0.39) or the latest version (v4.4.1 at the time of this writing).

I have attempted the following with no success: