-
Notifications
You must be signed in to change notification settings - Fork 273
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot run Azure Durable Functions on Mac M2 PRO #2446
Comments
@davidmrdavid |
For now as a workaround: Add the package reference And add this to your csproj. This will copy the needed file to the folder required. Until there is a fix |
I want to update the instructions to make it easy for other developers.
Solution Credits: @vdboots |
Ok, the workaround looked promising, and my durable function compiled and started, but it crashes when invoking the function via http get call, sigh.
|
Works perfectly for me on Apple Macbook Pro (M2 Pro). Tried creating both .net6 in-process function and .net7 isolated function, and it works in both cases. |
Yes @apavate , did stupid mistake, it works for me as well on M1 Mac, thanks for the workaround! |
This issue: Azure/azure-functions-host#9235 is aiming to holistically fix this, as durable will then switch to AspNetCore implementation of gRPC in the host. |
Just as a heads up, we've surfaced the instructed provided here by @apavate and @vdboots in the DF isolated SDK repo: microsoft/durabletask-dotnet#148. Thanks for your contribution here :). |
Thank you! |
Figured it out after hours, so for anyone else stumbling upon this issue in the future: for me the (stupid) issue was that I had excluded the durable function in my |
I'm actually not on M1/M2, I'm on an Intel Mac on .NET 8 having this issue. For me the following seems to be getting me by for now...
<Target Name="CopyGrpcNativeAssetsToOutDir" AfterTargets="Build">
<ItemGroup>
<NativeAssetToCopy Condition="$([MSBuild]::IsOSPlatform('OSX'))"
Include="$(OutDir)runtimes/osx-x64/native/*" />
</ItemGroup>
<Copy SourceFiles="@(NativeAssetToCopy)"
DestinationFolder="$(OutDir)bin/runtimes/osx-x64/native" />
</Target> If I didn't do the above when I run my app it looks for the Grpc.Core assets in locations where they are not being output to by default. |
Description
When trying to create and run a new Azure Durable Function (.NET 7 | Isolated), I am unable to run it successfully.
Expected behavior
Should run without any issues.
Actual behavior
Does not run.
Relevant source code snippets
The text was updated successfully, but these errors were encountered: