frhagn / Typewriter

Automatic TypeScript template generation from C# source files
http://frhagn.github.io/Typewriter
Apache License 2.0
536 stars 132 forks source link

Custom Extension Library #314

Open AndyBraham opened 5 years ago

AndyBraham commented 5 years ago

Is it possible to create a custom extension library to reuse custom methods?

I created a static .cs class called Test.cs in the namespace .Extensions.Typewriter and attempted to use it in a Typewriter .tst file but it doesn't seem to recognize the namespace, I get the error "The type or namespace name .Extensions.Typewriter.Test could not be found" is there a way to include this custom namespace so Typewriter can recognize the namespace?

My Extension is simply defined as:

namespace MyApp.Extensions.Typewriter { public static class ExportExtensions { public static string test() { return "It Works!"; } } }

And attempted to use it by

using MyApp.Extensions.Typewriter