Skip to content

Instantly share code, notes, and snippets.

@pavel-b-novikov
Last active May 13, 2017 17:19
Show Gist options
  • Save pavel-b-novikov/1285b623aba37307a855385b4144ceac to your computer and use it in GitHub Desktop.
Save pavel-b-novikov/1285b623aba37307a855385b4144ceac to your computer and use it in GitHub Desktop.
Running RT Configuration without CLI
using Reinforced.Typings.Exceptions;
using Reinforced.Typings.Fluent;
class Test
{
public void DoExport()
{
ExportContext context = new ExportContext
{
Hierarchical = false, //true if you export to multiple files
TargetDirectory = @"C:\Temp\MyExport", //substitute your path
TargetFile = @"C:\Temp\MyExport\project.ts", //substitute your file
SourceAssemblies = new Assembly[] {...}, // specify assemblies (usually by typeof(something).Assembly) containig type that you export and all dependant types
DocumentationFilePath = @"C:\MyProject\bin\MyProject.XML", //optional
ConfigurationMethod = builder => MyRtConfiguration.Configure(builder) //here is your method
};
TsExporter exporter = new TsExporter(context);
exporter.Export();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment