Copy the schemas to the following directory: c:\Program Files (x86)\Microsoft Visual Studio 10.0\Xml\Schemas\
and include the xml namespace in every hbm.xml file: <hibernate-mapping xmlns="urn:nhibernate-mapping-2.2"> On Apr 16, 9:26 am, Diego Mijelshon <[email protected]> wrote: > As a last test... try keeping the xsd open and see what happens (this helped > me in the past) > > Diego > > > > On Fri, Apr 16, 2010 at 10:23, Jim Geurts <[email protected]> wrote: > > Doesn't work for me. I added the schemas to the solution, to my > > project, and to the vs.net schemas directory in program files but > > still no intellisense love. Restarting vs.net doesn't help either > > > Any other thoughts? Btw, the schemas worked for me when my model > > objects were in a web project, but intellisense stopped when I moved > > them to their own assembly. > > > Thanks, > > > Jim > > > On Apr 14, 7:31 pm, Diego Mijelshon <[email protected]> wrote: > > > Don't copy the schemas to any special folders. > > > Instead, include them in your solution (as solution items). > > > > Diego > > > > On Wed, Apr 14, 2010 at 19:16, Jim Geurts <[email protected]> wrote: > > > > Hey all, > > > > > I'm trying to enable intellisense for NHibernate mapping files with > > > > Visual Studio 2010. I tried putting the two xsd files into the > > > > following directories but still have no intellisense: > > > > > C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Packages > > > > \schemas\xml > > > > C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Packages > > > > \schemas\xml\1033 > > > > C:\Program Files (x86)\Microsoft Visual Studio 10.0\Xml\Schemas > > > > C:\Program Files (x86)\Microsoft Visual Studio 10.0\Xml\Schemas\1033 > > > > > After I copied the files, I shut down visual studio and restarted it. > > > > Any pointers for how to get intellisense working for NHibernate map > > > > files? > > > > > My map files begin with the following: <?xml version="1.0" > > > > encoding="utf-8" ?><hibernate-mapping xmlns="urn:nhibernate- > > > > mapping-2.2" > > > > > So they should be picking up the correct schema info. > > > > > Thanks for any help, > > > > > Jim > > > > > -- > > > > You received this message because you are subscribed to the Google > > Groups > > > > "nhusers" group. > > > > To post to this group, send email to [email protected]. > > > > To unsubscribe from this group, send email to > > > > [email protected]<nhusers%[email protected]> > > <nhusers%[email protected]<nhusers%[email protected]>> > > > > . > > > > For more options, visit this group at > > > >http://groups.google.com/group/nhusers?hl=en. > > > -- > > You received this message because you are subscribed to the Google Groups > > "nhusers" group. > > To post to this group, send email to [email protected]. > > To unsubscribe from this group, send email to > > [email protected]<nhusers%[email protected]> > > . > > For more options, visit this group at > >http://groups.google.com/group/nhusers?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "nhusers" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group > athttp://groups.google.com/group/nhusers?hl=en. -- You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/nhusers?hl=en.
