I am using TypeLITE with various projects and a simple web site. I would like to use TypeLITE to generate TypeScript definitions from my C# classes, but I am not allowed to add the TypeLITE dll's to every project.
Let this be my project structure:
Solution
|
|
----- WebSite (with NuGet-Installation of TypeLITE)
|
|
----- FirstProject
|
|
----- SecondProject
|
|
----- ThirdProject
I installed TypeLITE via NuGet-Console and the C#-Classes are located in "FirstProject", "SecondProject" and "ThirdProject".
Problem: I have to use the NuGet-Installation for all other projects.
Is this possible?
If you want to use definitions of classes from the FirstProject in your WebSite, you can just add reference to the FirstProject to the TypeLite.tt file inside your WebSite
<#@ assembly name="$(TargetDir)FirstProject.dll" #>
and classes from the FirstProject will become available to the TypeLITE.
(if FirstProject.dll isn't located in the bin folder of your WebSite, you have to use appropriate directory instead of $(TargetDir))
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With