Browse Source
Instead of referencing platform-specific targets in the sample applications, copy the libs in a build task (Shared\perspex.platform.targets) - the correct lib will then be loaded dynamically at runtime.pull/83/head
5 changed files with 24 additions and 49 deletions
@ -0,0 +1,20 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
|
||||
|
<!-- Includes the Perspex platform-specific libraries in an application's output directory --> |
||||
|
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
||||
|
<ItemGroup Condition="'$(MSBuildThisFileDirectory)' != '' And HasTrailingSlash('$(MSBuildThisFileDirectory)')"> |
||||
|
<PlatformLib Include="$(MSBuildThisFileDirectory)..\Gtk\Perspex.Cairo\bin\$(Configuration)\Perspex.Cairo.dll" /> |
||||
|
<PlatformLib Include="$(MSBuildThisFileDirectory)..\Gtk\Perspex.Gtk\bin\$(Configuration)\Perspex.Gtk.dll" /> |
||||
|
<PlatformLib Include="$(MSBuildThisFileDirectory)..\Windows\Perspex.Direct2D1\bin\$(Configuration)\Perspex.Direct2D1.dll" /> |
||||
|
<PlatformLib Include="$(MSBuildThisFileDirectory)..\Windows\Perspex.Direct2D1\bin\$(Configuration)\SharpDX.dll" /> |
||||
|
<PlatformLib Include="$(MSBuildThisFileDirectory)..\Windows\Perspex.Direct2D1\bin\$(Configuration)\SharpDX.Direct2D1.dll" /> |
||||
|
<PlatformLib Include="$(MSBuildThisFileDirectory)..\Windows\Perspex.Direct2D1\bin\$(Configuration)\SharpDX.DXGI.dll" /> |
||||
|
<PlatformLib Include="$(MSBuildThisFileDirectory)..\Windows\Perspex.Win32\bin\$(Configuration)\Perspex.Win32.dll" /> |
||||
|
</ItemGroup> |
||||
|
<PropertyGroup> |
||||
|
<PrepareForRunDependsOn>$(PrepareForRunDependsOn);CopyPlatformLibs</PrepareForRunDependsOn> |
||||
|
</PropertyGroup> |
||||
|
<Target Name="CopyPlatformLibs"> |
||||
|
<Copy SourceFiles="@(PlatformLib)" DestinationFolder="$(OutDir)" ContinueOnError="true"/> |
||||
|
</Target> |
||||
|
</Project> |
||||
Loading…
Reference in new issue