I’m kinda new to WPF and .Net programming in general.
I have downloaded this Source Code.
Now, it has a solution which contains a Paris.Controls csproj.
This was originaly made for Silverlight, when i try to add referance to the outputed dll of those controls, i get an error:
Error 1 Unknown build error,
'Cannot resolve dependency to assembly
'System.Windows, Version=2.0.5.0, Culture=neutral,
PublicKeyToken=7cec85d7bea7798e'
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.
Line 9 Position 80.' C:\Users\Eric\Documents\Visual Studio
2010\Projects\WpfApplication1\WpfApplication1\MainWindow.xaml 9 80
WpfApplication1
After a bit of googling, i found out It’s most likley because of the Silverlight – WPF transformation.
That Silverlight uses different referances then WPF.
Which is kinda dumb i think because as i understood Silverlight is a substraction of WPF, but nevermind.
So my question is what should i do and how?
Should i edit the Paris.Controls and make it WPF-Available?
Change referances and stuff like that? and if that’s what i should do,
How do i do that?
And if not, what are my options?
Please help guys,
Sincerly yours,
Eric
You can’t.
Silverlight and WPF, while very similar are based on different versions of the .NET runtime. WPF uses the full version, while Silverlight uses a lighterweight version optimised for the Internet.
As you have the source code you should be able to incorporate that into a WPF control – it will mean recompiling against the full libraries and fixing any errors that the compiler throws up.