|
1 |
| -<Project Sdk="Microsoft.NET.Sdk"> |
| 1 | +<Project Sdk="Microsoft.NET.Sdk"> |
2 | 2 |
|
3 | 3 | <PropertyGroup>
|
4 | 4 | <TargetFrameworks>netstandard1.5;netstandard2.0;net452</TargetFrameworks>
|
|
25 | 25 | <IncludeSymbols>true</IncludeSymbols>
|
26 | 26 | </PropertyGroup>
|
27 | 27 |
|
| 28 | + <PropertyGroup> |
| 29 | + <IsWindows Condition="$([MSBuild]::IsOSPlatform('Windows'))">true</IsWindows> |
| 30 | + <IsOSX Condition="$([MSBuild]::IsOSPlatform('OSX'))">true</IsOSX> |
| 31 | + <IsLinux Condition="$([MSBuild]::IsOSPlatform('Linux'))">true</IsLinux> |
| 32 | + </PropertyGroup> |
| 33 | + |
| 34 | + <Target Name="PrintOS" BeforeTargets="Build"> |
| 35 | + <Message Text="IsWindows: '$(IsWindows)'" Importance="high" /> |
| 36 | + <Message Text="IsOSX: '$(IsOSX)'" Importance="high" /> |
| 37 | + <Message Text="IsLinux: '$(IsLinux)'" Importance="high" /> |
| 38 | + </Target> |
| 39 | + |
28 | 40 | <PropertyGroup Condition="'$(Version)'==''">
|
29 | 41 | <Version>0.0.0-local</Version>
|
30 | 42 | </PropertyGroup>
|
|
61 | 73 | <SnappyBinaries>Core/Compression/Snappy/lib/win</SnappyBinaries>
|
62 | 74 | </PropertyGroup>
|
63 | 75 |
|
64 |
| - <ItemGroup> |
| 76 | + <ItemGroup Condition=" '$(IsWindows)' == true "> |
65 | 77 | <Content Include="$(SnappyBinaries)/snappy32.dll">
|
66 | 78 | <Pack>true</Pack>
|
67 | 79 | <PackagePath>$(CompressionRuntimesPath)</PackagePath>
|
|
72 | 84 | </Content>
|
73 | 85 | </ItemGroup>
|
74 | 86 |
|
75 |
| - <ItemGroup> |
| 87 | + <ItemGroup Condition=" '$(IsWindows)' == true "> |
76 | 88 | <Content Include="$(SnappyBinaries)/snappy32.dll">
|
77 | 89 | <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
78 | 90 | <Link>snappy32.dll</Link>
|
|
92 | 104 | <ZstdBinaries>Core/Compression/Zstandard/lib/win</ZstdBinaries>
|
93 | 105 | </PropertyGroup>
|
94 | 106 |
|
95 |
| - <ItemGroup> |
| 107 | + <ItemGroup Condition=" '$(IsWindows)' == true "> |
96 | 108 | <Content Include="$(ZstdBinaries)/libzstd.dll">
|
97 | 109 | <Pack>true</Pack>
|
98 | 110 | <PackagePath>$(CompressionRuntimesPath)</PackagePath>
|
99 | 111 | </Content>
|
100 | 112 | </ItemGroup>
|
101 | 113 |
|
102 |
| - <ItemGroup> |
| 114 | + <ItemGroup Condition=" '$(IsWindows)' == true "> |
103 | 115 | <Content Include="$(ZstdBinaries)/libzstd.dll">
|
104 | 116 | <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
105 | 117 | <Link>libzstd.dll</Link>
|
|
150 | 162 | <ItemGroup>
|
151 | 163 | <None Include="..\..\License.txt" Pack="true" PackagePath="$(PackageLicenseFile)" />
|
152 | 164 | <None Include="..\..\THIRD-PARTY-NOTICES" Pack="true" PackagePath="\" />
|
153 |
| - <None Include="..\..\packageIcon.png" Pack="true" PackagePath=""/> |
| 165 | + <None Include="..\..\packageIcon.png" Pack="true" PackagePath="" /> |
154 | 166 | </ItemGroup>
|
155 | 167 |
|
156 | 168 | </Project>
|
0 commit comments