[msvc] Update csproj files (#4846)
[mono.git] / mcs / class / System.ServiceModel / System.ServiceModel-plainservice-net_4_x.csproj
index de082d1fa2b32e740ed8d2cfb956a5b182d84979..03f3de5243565e9f05739e09052fcd81067153f4 100644 (file)
@@ -9,7 +9,10 @@
     <ProjectGuid>{88C258E1-F0AF-47DA-96C8-7FA6421067CD}</ProjectGuid>\r
     <OutputType>Library</OutputType>\r
     <NoWarn>1699,414,169,67,3005,436,219,618</NoWarn>\r
-    <OutputPath>./../../class/lib/net_4_x/plainservice</OutputPath>\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)/plainservice</OutputPath>\r
     <IntermediateOutputPath>obj-plainservice</IntermediateOutputPath>\r
     <GenerateTargetFrameworkAttribute>false</GenerateTargetFrameworkAttribute>\r
     <NoStdLib>True</NoStdLib>\r