Skip to content

Commit

Permalink
Add msbuild targets file to copy library files to the consuming project
Browse files Browse the repository at this point in the history
  • Loading branch information
zone117x committed May 22, 2018
1 parent 8e8a94d commit 3940569
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions SolcLib.Native.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@
<file src="lib/osx-x64/libsolc.dylib" target="runtimes/osx-x64/native/libsolc.dylib" />
<file src="lib/win-x64/solc.dll" target="runtimes/win-x64/native/solc.dll" />
<file src="lib/win-x86/solc.dll" target="runtimes/win-x86/native/solc.dll" />
<file src="SolcLib.Native.targets" target="build/netstandard1.0"/>
</files>
</package>
21 changes: 21 additions & 0 deletions SolcLib.Native.targets
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<Content Include="$(MSBuildThisFileDirectory)..\..\runtimes\win-x64\native\solc.dll">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<Link>native\win-x64\solc.dll</Link>
</Content>
<Content Include="$(MSBuildThisFileDirectory)..\..\runtimes\win-x86\native\solc.dll">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<Link>native\win-x86\solc.dll</Link>
</Content>
<Content Include="$(MSBuildThisFileDirectory)..\..\runtimes\linux-x64\native\libsolc.so">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<Link>native\linux-x64\libsolc.so</Link>
</Content>
<Content Include="$(MSBuildThisFileDirectory)..\..\runtimes\osx-x64\native\libsolc.dylib">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<Link>native\osx-x64\libsolc.dylib</Link>
</Content>
</ItemGroup>
</Project>

0 comments on commit 3940569

Please sign in to comment.