WPF App - Cannot resolve dependency to assembly Sdl.Core.PluginFramework

Is it not possible to write Trados Apps with WPF?

I have a WPF .NET 4.5 App set to compile to x86 and by just adding the suggested Trados Libs I get this error:

Unknown build error, 'Cannot resolve dependency to assembly 'Sdl.Core.PluginFramework, Version=1.8.0.0, Culture=neutral, PublicKeyToken=c28cdb26c445c888' because it has not been preloaded. When using the ReflectionOnly APIs, dependent assemblies must be pre-loaded or loaded on demand through the ReflectionOnlyAssemblyResolve event.' 

 

If I add the dll I can compile it, but it crashes here:

 

FileBasedTranslationMemory fileTm = new FileBasedTranslationMemory(tmFile);
string srcLocale = fileTm.LanguageDirection.SourceLanguage.ToString();

 

Could not load file or assembly 'Oracle.DataAccess, Version=2.112.3.0, Culture=neutral, PublicKeyToken=89b483f429c47342' or one of its dependencies. An attempt was made to load a program with an incorrect format.

 

If we try the same thing as an old Windows Form app it works (without the dll's). All our other code is in WPF, so it would make our life much easier...

 

Another small thing: I had VS 2010 installed and now have VS2012. When installing the SDK, I only got the option to add the extensions to 2010. Even though that is not installed anymore.