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 31 forks source link

add the dll to my project then unable to launch in non-debug mode #2

Closed tylerlong closed 11 years ago

tylerlong commented 11 years ago

WPF or WinForm applications

F5 can launch the program

but Ctrl + F5 fails to launch.

tylerlong commented 11 years ago

It turns out that I can't compile a template in the constructor of the winform or wpf application.

I move the code out of the constructor and the problem disappeared.

I will post more detail here.

volkovku commented 11 years ago

Thank for your bug report. Problem fixed now.