C# - Build Errors

87 views
Skip to first unread message

keith...@gmail.com

unread,
Dec 20, 2017, 6:04:39 AM12/20/17
to grpc.io



When I am opening the C# src project it keeps failing to build. Should this work out of the box or am I missing something?





Jan Tattermusch

unread,
Jan 3, 2018, 3:21:44 PM1/3/18
to keith...@gmail.com, grpc.io
I think the highlighted "error" is just a warning (and it also says the Castle.Core dependency was resolved fine).
The actual error seems to be that there is no grpc_csharp_ext.dll library pre-built (you need to build the native library grpc_csharp_ext.dll before you can build the C# project - otherwise it fails to copy the .dll to the project output).

The native library can be built using cmake and gets built automatically if you just run:
python tools/run_tests/run_tests.py -l csharp -c dbg --build_only


Also, it looks like you are trying to build on ARM - which is not officially supported so you might be have some extra trouble building the grpc_csharp_ext.dll.


On Wed, Dec 20, 2017 at 12:04 PM, <keith...@gmail.com> wrote:



When I am opening the C# src project it keeps failing to build. Should this work out of the box or am I missing something?





--
You received this message because you are subscribed to the Google Groups "grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email to grpc-io+unsubscribe@googlegroups.com.
To post to this group, send email to grp...@googlegroups.com.
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/a1831bd7-a6cd-459e-a168-1c6d77f293e4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Jan

keith...@gmail.com

unread,
Jan 3, 2018, 5:50:14 PM1/3/18
to grpc.io
Thanks for your reply :) I have tried to follow the steps in this thread : https://github.com/grpc/grpc/issues/11686

But I also got stuck. Tried tagging person who managed to build for ARM but he did not reply. 

Jan Tattermusch

unread,
Feb 27, 2018, 2:53:31 AM2/27/18
to Keith Grima, grpc.io
I just found out that the "Castle.Core" dependency problem can indeed fail the build if you have a new enough version of dotnet SDK version installed.
I'll create PR with a fix, but in the meantime you can easily fix this yourself by updating Moq to 4.8.2 here: https://github.com/grpc/grpc/blob/0dc7c5996ce5091a96632919a3e3befe351b44d0/src/csharp/Grpc.IntegrationTesting/Grpc.IntegrationTesting.csproj#L22

--
You received this message because you are subscribed to the Google Groups "grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email to grpc-io+unsubscribe@googlegroups.com.
To post to this group, send email to grp...@googlegroups.com.
Visit this group at https://groups.google.com/group/grpc-io.

For more options, visit https://groups.google.com/d/optout.



--

Jan

Reply all
Reply to author
Forward
0 new messages