[msvc] Update csproj files (#4846)
[mono.git] / mcs / class / System.Runtime.Serialization / System.Runtime.Serialization-net_4_x.csproj
index ed90c6f20117ac06fa55883c9bf0fc365583b68e..f11d44fdf8e2946bfe964f3619118dc3c3b7a732 100644 (file)
@@ -9,8 +9,11 @@
     <ProjectGuid>{D845AD9D-3CCB-49CB-9543-028678E94938}</ProjectGuid>\r
     <OutputType>Library</OutputType>\r
     <NoWarn>1699,168,169,219,414,618,1634</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
     \r