[msvc] Update csproj files (#4846)
[mono.git] / mcs / class / RabbitMQ.Client / src / apigen / RabbitMQ.Client.Apigen-net_4_x.csproj
index c4ee94a44a9e3afce47ed0b882336ad2217dcaeb..20dd16b85b7648db324be565597e90e816b0d033 100644 (file)
@@ -9,8 +9,11 @@
     <ProjectGuid>{D2A49790-9CFD-492B-9CFA-58B9AEDA1B75}</ProjectGuid>\r
     <OutputType>Exe</OutputType>\r
     <NoWarn>1699</NoWarn>\r
-    <OutputPath>./../../../../class/lib/net_4_x</OutputPath>\r
-    <IntermediateOutputPath>obj-net_4_x</IntermediateOutputPath>\r
+    <HostPlatform Condition=" '$(HostPlatform)' == '' and '$(OS)' == 'Windows_NT'">win32</HostPlatform>\r
+    <HostPlatform Condition=" '$(HostPlatform)' == '' and '$(OS)' == 'Unix' and $([System.IO.File]::Exists('/usr/lib/libc.dylib'))">darwin</HostPlatform>\r
+    <HostPlatform Condition=" '$(HostPlatform)' == '' and '$(OS)' == 'Unix'">linux</HostPlatform>\r
+    <OutputPath>./../../../../class/lib/net_4_x-$(HostPlatform)</OutputPath>\r
+    <IntermediateOutputPath>obj-net_4_x-$(HostPlatform)</IntermediateOutputPath>\r
     <GenerateTargetFrameworkAttribute>false</GenerateTargetFrameworkAttribute>\r
     <NoStdLib>True</NoStdLib>\r
     <StartupObject>RabbitMQ.Client.Apigen.Apigen</StartupObject>\r