how to use sandcastle with dlls

May 9, 2012 at 6:33 AM

Hi
 i have an WCF service  with filename cardService.cs in this class  i am using namespace  like This
 

using Microsoft.Practices.EnterpriseLibrary.Logging;
using jitsu.Generic.SharedUtils;

namespace Kumar.com.cardService
{
    public class cardService : cardService
    {
 //  where  my  methods  go here
 }
}
 


C:\temp2\Guy>%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\csc.exe /target:library /doc:cardService.xml cardService.cs
when i run my command like this it throws me an error telling not able to find the
under this  directory i have  my dll
1:Practices.dll
2:jitsu.dll

cardService.cs(8,17): error CS0234: The type or namespace name 'Practices'
       does not exist in the namespace 'Microsoft' (are you missing an assembly
       reference?)
cardService.cs(11,7): error CS0246: The type or namespace name 'jitsu'
       could not be found (are you missing a using directive or an assembly
       reference?)
      
 any idea how  to  solve this  issue, is there any mistake in my syntax any help on this would be much appreciated

article which i am following here

http://broadcast.oreilly.com/2010/09/build-html-documentation-for-y.html
 
 Thanks
 Prince

Coordinator
May 9, 2012 at 8:17 PM

This is a C# compiler issue and is not related to generating documentation.  You probably need to explicitly specify the reference assemblies when calling the compiler using the /r command line switch.  If you have it, use Visual Studio to build the project rather than trying to do it by hand.  See the walkthroughs in the Getting Started section of the SHFB help file.  They will guide you through setting up your project properly and creating a help file builder project.

Eric