[msvc] Update csproj files (#4846)
[mono.git] / mcs / tools / mono-shlib-cop / mono-shlib-cop-net_4_x.csproj
index d2e41439c10b6e6b4c154c4d2b309ff56037f342..06d3bec0c89eea9b3d8e9da6f59ccdfb5aed98ee 100644 (file)
@@ -9,8 +9,11 @@
     <ProjectGuid>{7E28A830-EB3C-48E3-B0FB-6DDAAF698115}</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
     \r