diff --git a/src/csharp/Grpc.Core/Grpc.Core.csproj b/src/csharp/Grpc.Core/Grpc.Core.csproj index de742f99add62b590e1f516ddc8eaf8db57f11c1..05d40d45a6e4c6614cbd728d55cf86caaa5d13b6 100644 --- a/src/csharp/Grpc.Core/Grpc.Core.csproj +++ b/src/csharp/Grpc.Core/Grpc.Core.csproj @@ -67,9 +67,9 @@ <Compile Include="Utils\ExceptionHelper.cs" /> </ItemGroup> <Choose> - <!-- Under Windows, automatically copy the C core library to output dir. - Under Monodevelop it's not supported so it has no effect. --> - <When Condition=" '$(Platform)' == 'AnyCPU' "> + <!-- Under older versions of Monodevelop, Choose is not supported and is just + ignored, which gives us the desired effect. --> + <When Condition=" '$(OS)' != 'Unix' "> <ItemGroup> <Content Include="..\..\..\vsprojects\vs2013\Debug\grpc_csharp_ext.dll"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>