-
Notifications
You must be signed in to change notification settings - Fork 69
Description
If the environment variable COREHOST_TRACE is set to 1, building a function project hangs during the target _GenerateFunctionsPostBuild. The only way to stop it is to terminate msbuild.exe in Task Manager, when building in a terminal ctrl+c fails to actually stop it. The experience in VS is even worse, the build cannot be cancelled and blocks many actions including closing VS.
Removing COREHOST_TRACE or setting it to 0 seems to fix the issue. The hint I could find that this could have been causing the issue is this stackoverflow post: https://stackoverflow.com/a/66884272
#264 seems to be related, but it's from 2018 and hasn't been touched since 2019.
I'm running Win10 and tried both Microsoft.NET.SDK.Functions 4.1.3 and Microsoft.Azure.Functions.Worker.Sdk 1.7.0, both inside VS and using msbuild /bl from powershell.