aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Jan Tattermusch <jtattermusch@google.com>2015-02-24 09:07:42 -0800
committerGravatar Jan Tattermusch <jtattermusch@google.com>2015-02-25 09:45:38 -0800
commit5ffb4c33dcffa83677370ee4e46ccee665ecedea (patch)
treeca5c6a2ec90b44bf90c33671ec04bca8f3d92856
parentabf22022465f628fce764e1f5a775310c0317973 (diff)
Include grpc_csharp_ext.dll only under Windows
-rw-r--r--src/csharp/Grpc.Core/Grpc.Core.csproj17
1 files changed, 12 insertions, 5 deletions
diff --git a/src/csharp/Grpc.Core/Grpc.Core.csproj b/src/csharp/Grpc.Core/Grpc.Core.csproj
index f88c9b373f..b5c15ee374 100644
--- a/src/csharp/Grpc.Core/Grpc.Core.csproj
+++ b/src/csharp/Grpc.Core/Grpc.Core.csproj
@@ -66,10 +66,17 @@
<Compile Include="Utils\BenchmarkUtil.cs" />
<Compile Include="Utils\ExceptionHelper.cs" />
</ItemGroup>
- <ItemGroup>
- <Content Include="..\..\..\vsprojects\vs2013\Debug\grpc_csharp_ext.dll">
- <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
- </Content>
- </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)' == 'x86' ">
+ <ItemGroup>
+ <Content Include="..\..\..\vsprojects\vs2013\Debug\grpc_csharp_ext.dll">
+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+ </Content>
+ </ItemGroup>
+ </When>
+ <Otherwise/>
+ </Choose>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
</Project> \ No newline at end of file