private static void TestSharpScript(BuildDocumenter documenter, TestOptions options, ReferenceEngineSettings engineSettings) { if (tocType == CustomTocType.ReferenceRoot) { return; } //string libraryDir = Path.Combine(sampleDir, @"SampleTestLibraryCLR\"); //string outputDir = Path.Combine(libraryDir, @"Output\"); //string projectDoc = Path.Combine(outputDir, "Project.xml"); string sourceFile = @"F:\SandcastleAssist\Development\Source\Tests\ScriptSample\samples\PhotoDemo\PhotoDemo.sln"; ReferenceVsNetSource vsSource = new ReferenceVsNetSource(); ReferenceVsNetItem vsItem = new ReferenceVsNetItem( new BuildFilePath(sourceFile)); vsItem.XamlSyntax = false; vsItem.AddInclude("{5F2605F7-5F00-4756-AC61-1D83B0E541E4}"); vsItem.AddInclude("{16B291CB-4AC1-41B9-943C-341FB528D7A1}"); vsItem.AddInclude("{4D8373CD-6685-4288-A1FF-1E37319D60D4}"); vsSource.Add(vsItem); //CommentContent comments = vsSource.Comments; //CommentItem projItem = new CommentItem("R:Project", // CommentItemType.Project); //projItem.Value.Add(new CommentPart("Summary of the project", // CommentPartType.Summary)); //comments.Add(projItem); //CommentItem nsItem = new CommentItem("N:TestLibraryCLR", // CommentItemType.Namespace); //nsItem.Value.Add(new CommentPart("Summary of the namespace", // CommentPartType.Summary)); //comments.Add(nsItem); ReferenceGroup apiGroup = new ReferenceGroup( "Test ScriptSharp Library", Guid.NewGuid().ToString(), vsSource); apiGroup.RunningHeaderText = "Sandcastle Helpers: ScriptSharp Library"; apiGroup.VersionType = ReferenceVersionType.AssemblyAndFile; apiGroup.SyntaxType = BuildSyntaxType.CSharp | BuildSyntaxType.JavaScript; if (engineSettings.RootNamespaceContainer) { apiGroup.RootNamespaceTitle = "Testing ScriptSharp Library"; } //ReferenceContent apiContent = apiGroup.Content; //apiContent.FrameworkType = BuildFrameworkType.Framework20; //apiGroup.AddItem(projectDoc, null); //apiContent.AddItem(Path.Combine(outputDir, "SampleLibraryCLR.xml"), // Path.Combine(outputDir, "SampleLibraryCLR.dll")); //apiContent.AddDependency(Path.Combine(outputDir, "")); documenter.AddGroup(apiGroup); }
private static void TestOthers(BuildDocumenter documenter, TestOptions options, ReferenceEngineSettings engineSettings) { if (tocType == CustomTocType.ReferenceRoot) { return; } //string libraryDir = Path.Combine(sampleDir, @"SampleTestLibraryCLR\"); //string outputDir = Path.Combine(libraryDir, @"Output\"); //string projectDoc = Path.Combine(outputDir, "Project.xml"); string sourceFile = @"F:\SandcastleAssist\Main\Samples\HelpersSamples.sln"; ReferenceVsNetSource vsSource = new ReferenceVsNetSource(); ReferenceVsNetItem vsItem = new ReferenceVsNetItem( new BuildFilePath(sourceFile)); //vsItem.XamlSyntax = false; vsItem.AddInclude("{41A48F1C-3E52-4995-B181-363EDBC02CA0}"); vsSource.Add(vsItem); CommentContent comments = vsSource.Comments; CommentItem projItem = new CommentItem("R:Project", CommentItemType.Project); projItem.Value.Add(new CommentPart("Summary of the project", CommentPartType.Summary)); comments.Add(projItem); CommentItem nsItem = new CommentItem("N:TestLibraryCLR", CommentItemType.Namespace); nsItem.Value.Add(new CommentPart("Summary of the namespace", CommentPartType.Summary)); comments.Add(nsItem); ReferenceGroup apiGroup = new ReferenceGroup( "Test CPP-CLR Library", Guid.NewGuid().ToString(), vsSource); apiGroup.RunningHeaderText = "Sandcastle Helpers: C++/CLR Library"; apiGroup.VersionType = ReferenceVersionType.AssemblyAndFile; if (engineSettings.RootNamespaceContainer) { apiGroup.RootNamespaceTitle = "Testing C++/CLR Library"; } //ReferenceContent apiContent = apiGroup.Content; //apiContent.FrameworkType = BuildFrameworkType.Framework20; //apiGroup.AddItem(projectDoc, null); //apiContent.AddItem(Path.Combine(outputDir, "SampleLibraryCLR.xml"), // Path.Combine(outputDir, "SampleLibraryCLR.dll")); //apiContent.AddDependency(Path.Combine(outputDir, "")); documenter.AddGroup(apiGroup); }