volkovku / RazorTemplates

Open source templating engine based on Microsoft's Razor parsing engine. Thread safe. Allows run Razor templates outside ASP.Net MVC Projects.
Microsoft Public License
99 stars 32 forks source link

Folder generated in temp directory doesn't get deleted. #20

Open Angele opened 5 years ago

Angele commented 5 years ago

Hi

TemplateCompiler.cs line 106 generates a new Directory in Temp for every compiled view.

Even tough the TempFileCollection deletes the file in it, is there a possibility to get rid of that directory? Is there any reason not to use CompileAssemblyFromSource provided with in memory string parameters? (same class, line 69)

Hope somebody still gets this.

berniefitz82 commented 4 years ago

Any update on this bug?

Angele commented 4 years ago

Yeah looks like this project was abandoned. If you don't mind memory leaks and high issue count i suggest using RazorEngine. If you can have you're project run on .Net Core or .Net framework 4.7.2 and higher you can try RazorLight. That last one is still active in development and has low issue count, but i havn't tested it yet.