From c33adc416f1865b4685ce1256ed729a53956c3a8 Mon Sep 17 00:00:00 2001 From: Steven Kirk Date: Sat, 29 Aug 2015 18:42:45 +0200 Subject: [PATCH] Don't reference platform-specific assemblies. 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. --- .../TestApplication/TestApplication.csproj | 19 ++----------- samples/TestApplication/packages.config | 3 -- .../XamlTestApplication.csproj | 28 +------------------ samples/XamlTestApplication/packages.config | 3 -- src/Shared/perspex.platform.targets | 20 +++++++++++++ 5 files changed, 24 insertions(+), 49 deletions(-) create mode 100644 src/Shared/perspex.platform.targets diff --git a/samples/TestApplication/TestApplication.csproj b/samples/TestApplication/TestApplication.csproj index 7976de3883..c8ec54dc14 100644 --- a/samples/TestApplication/TestApplication.csproj +++ b/samples/TestApplication/TestApplication.csproj @@ -11,7 +11,8 @@ TestApplication v4.5 512 - caf18def + + AnyCPU @@ -130,14 +131,6 @@ {3E10A5FA-E8DA-48B1-AD44-6A5B6CB7750F} Perspex.Themes.Default - - {3e908f67-5543-4879-a1dc-08eace79b3cd} - Perspex.Direct2D1 - - - {811a76cf-1cf6-440f-963b-bbe31bd72a82} - Perspex.Win32 - @@ -145,13 +138,7 @@ - - - - This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. - - - + + + + + + + + + + + + + $(PrepareForRunDependsOn);CopyPlatformLibs + + + + + \ No newline at end of file