Last active
May 13, 2017 17:19
-
-
Save pavel-b-novikov/1285b623aba37307a855385b4144ceac to your computer and use it in GitHub Desktop.
Running RT Configuration without CLI
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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