I think I have found the problem and it isn't situated at the Saxon level. The problem lays with an extension for Visual Studio .NET called Resharper and I can work around it.

It compiles at the moment, although I didn't actually get the example file 'XsltExamples.cs' to work.
A filename is given to the ExampleSimple1 method, but it expects an Uri. Had no time yet to look at this, but I'm guessing it's probably something stupid I did :)



On 2/21/07, Michael Kay <mike@saxonica.com> wrote:

I'm afraid you probably know a lot more about Visual Studio than I do. All I
can really say is that I haven't encountered this problem - though when I do
encounter such problems, I do find them hard to diagnose. Did you install
the Saxon DLLs in the GAC? Are you sure you are referencing the right

Michael Kay

> -----Original Message-----
> From: saxon-help-bounces@lists.sourceforge.net
> [mailto:saxon-help-bounces@lists.sourceforge.net ] On Behalf Of Tuy
> Sent: 20 February 2007 14:17
> To: saxon-help@lists.sourceforge.net
> Subject: [saxon] Saxon & Visual Studio
> Hi all,
> I know my way around Visual Studio & .NET since I've been
> using it for years professionally, but I'm new to Saxon. I've
> converted mainly because I need the XSLT 2.0 functionality :)
> I'm trying to get Saxon to work under Visual Studio 2003/2005
> (with Resharper installed). Also tried to load the sample
> XsltExamples.cs, but I always seem to have the same problem :
> It always has problems with the following line
> using Saxon.Api;
> It seems to have a problem with the 'Saxon' namespace and yes
> I have the reference, I even references all 4
>  - IKVM.GNU.Classpath.dll
>  - IKVM.Runtime.dll
>  - saxon8.dll
>  - saxon8api.dll
> Obviously I'm doing something wrong. I've been at it for
> hours and hours ...
> Anyone have any idea what I'm missing ?
> Thanks,
> Tommy
> --
> View this message in context:
> http://www.nabble.com/Saxon---Visual-Studio-tf3260775.html#a9062529
> Sent from the saxon-help mailing list archive at Nabble.com.
> --------------------------------------------------------------
> -----------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the
> chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge
> _______________________________________________
> saxon-help mailing list
> saxon-help@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/saxon-help