Skip to content

Commit

Permalink
Merge pull request #261 from portyanikhin/update-targets
Browse files Browse the repository at this point in the history
Updated targets
  • Loading branch information
portyanikhin authored Jan 19, 2024
2 parents 896041f + cdb4204 commit 2fc330e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 31 deletions.
34 changes: 4 additions & 30 deletions src/SharpProp/SharpProp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,39 +8,13 @@
</PropertyGroup>

<ItemGroup>
<None Include="SharpProp.targets" Pack="true" Visible="false" PackagePath="build\"/>
<None Include="libCoolProp.dll" Condition="$([MSBuild]::IsOSPlatform('Windows'))">
<Pack>true</Pack>
<Visible>false</Visible>
<PackagePath>build\</PackagePath>
</None>
<None Update="libCoolProp.dll" Condition="$([MSBuild]::IsOSPlatform('Windows'))">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<Pack>true</Pack>
<Visible>false</Visible>
<PackagePath>build\</PackagePath>
</None>
<None Include="libCoolProp.dylib" Condition="$([MSBuild]::IsOSPlatform('OSX'))">
<Pack>true</Pack>
<Visible>false</Visible>
<PackagePath>build\</PackagePath>
</None>
<None Update="libCoolProp.dylib" Condition="$([MSBuild]::IsOSPlatform('OSX'))">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<Pack>true</Pack>
<Visible>false</Visible>
<PackagePath>build\</PackagePath>
</None>
<None Include="libCoolProp.so" Condition="$([MSBuild]::IsOSPlatform('Linux'))">
<Pack>true</Pack>
<Visible>false</Visible>
<PackagePath>build\</PackagePath>
</None>
<None Update="libCoolProp.so" Condition="$([MSBuild]::IsOSPlatform('Linux'))">
<None Include="SharpProp.targets" Pack="true" PackagePath="build" Visible="false"/>
<None Include="*.dll;*.dylib;*.so">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<Pack>true</Pack>
<PackageCopyToOutput>true</PackageCopyToOutput>
<PackagePath>build</PackagePath>
<Visible>false</Visible>
<PackagePath>build\</PackagePath>
</None>
</ItemGroup>

Expand Down
3 changes: 2 additions & 1 deletion src/SharpProp/SharpProp.targets
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
<NativeLibs Include="$(MSBuildThisFileDirectory)**\*.dylib" Condition="$([MSBuild]::IsOSPlatform('OSX'))"/>
<NativeLibs Include="$(MSBuildThisFileDirectory)**\*.so" Condition="$([MSBuild]::IsOSPlatform('Linux'))"/>
<None Include="@(NativeLibs)">
<Link>%(RecursiveDir)%(FileName)%(Extension)</Link>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<Link>%(RecursiveDir)%(FileName)%(Extension)</Link>
<Visible>false</Visible>
</None>
</ItemGroup>
</Project>

0 comments on commit 2fc330e

Please sign in to comment.