PDA

View Full Version : Schema Problem



rolandz
11-09-2008, 07:53 AM
Hi,

I have a fundamental problem with the schema provided in file spring-wpf.xsd.

The compiler reports an error as shown on the picture attached ("Imported schema ... was not resolved"). For me it seems that the microsoft schamas are not imported or sbth like that.

Could anyone fix me? The problem now stops me from continuing working with WPF/Spring. The sources I've found in the CVS (sandbox) and that might be out of date somehow. Also, I am working with VS C# Studio Express 2008, but I don't see a reason why putting the schema to the "%VsInstallDir%\xml\Schemas" location would differ from a full VS version.

rolandz
11-14-2008, 08:15 PM
[For those who might experience similar problems and could find this information useful]

It is enough to specify attributes:



[assembly: System.Windows.Markup.XmlnsDefinition("http://www.springframework.net/wpf", "Spring.Context")]
[assembly: System.Windows.Markup.XmlnsDefinition("http://www.springframework.net/wpf", "Spring.Expressions")]


Copying of schema into the VS folder does not take effect and instead of this the attributes can be applied to the integration assembly. Everything works perfectly :)

What I see, the original Spring.Wpf.2005.Orcas project does that. Well, I didn't mention that I've taken the source code only and have built the assembly project from scratch - that was the reason of my problems...