install-gac.cmd

Help
2010-04-09
2012-10-08
  • Don Cameron
    Don Cameron
    2010-04-09

    I installed Saxon .NET and ran the install-gac.cmd and verified that the
    assembly is in the GAC.
    C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin>gacutil /l saxon9he
    Microsoft (R) .NET Global Assembly Cache Utility. Version 3.5.30729.1
    The Global Assembly Cache contains the following assemblies:
    saxon9he, Version=9.2.0.6, Culture=neutral, PublicKeyToken=e1fdd002d5083fe6,
    processorArchitecture=MSIL

    I created a project in Visual Studio C# 2008 Express, added Examples.cs to it,
    tried a build and got this error:
    Error 1 The type or namespace name 'Saxon' could not be found (are you missing
    a using directive or an assembly reference?) ...\My Documents\Visual Studio
    2008\Projects\Examples\Examples.cs

    What did I fail to do?

     
  • Michael Kay
    Michael Kay
    2010-04-09

    Did you create a reference to saxon9he-api.dll?

     
  • Don Cameron
    Don Cameron
    2010-04-09

    I am embarassed to say that I had not at the time of posting, but I thought of
    it right after. When I created the reference, I could not select saxon9he.dll
    in C:\windows\assembly and was forced to reference the dll in the saxon
    distribution.