You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Mono.TextTemplating.TemplatingEngineException: Not a valid .NET Core host
at Mono.TextTemplating.TemplatingEngine.GetOrCreateCompiler() in /_/Mono.TextTemplating/Mono.TextTemplating/TemplatingEngine.cs:line 67
at Mono.TextTemplating.TemplatingEngine.CompileCode(IEnumerable1 references, TemplateSettings settings, CodeCompileUnit ccu, CancellationToken token) in /_/Mono.TextTemplating/Mono.TextTemplating/TemplatingEngine.cs:line 303 at Mono.TextTemplating.TemplatingEngine.CompileTemplateInternal(ParsedTemplate pt, String content, ITextTemplatingEngineHost host, TemplateSettings settings, CancellationToken token) in /_/Mono.TextTemplating/Mono.TextTemplating/TemplatingEngine.cs:line 277 at Mono.TextTemplating.TemplatingEngine.CompileTemplateAsync(String content, ITextTemplatingEngineHost host, CancellationToken token) in /_/Mono.TextTemplating/Mono.TextTemplating/TemplatingEngine.cs:line 207 at Mono.TextTemplating.TemplatingEngine.ProcessTemplateAsync(String content, ITextTemplatingEngineHost host, CancellationToken token) in /_/Mono.TextTemplating/Mono.TextTemplating/TemplatingEngine.cs:line 82 at Mono.TextTemplating.TemplateGenerator.ProcessTemplateAsync(String inputFileName, String inputContent, String outputFileName, CancellationToken token) in /_/Mono.TextTemplating/Mono.TextTemplating/TemplateGenerator.cs:line 172 at DocumentTemplateService.Globals.Implementations.T4TemplateService.T4TemplateService.ProcessTemplate(String template, Dictionary2 parameters)
The text was updated successfully, but these errors were encountered:
FYI
This error occurs if
you use a package version below 2.3.1
and
your application is published in 'Deployment Mode' = 'Self-contained' (Not 'Framework-dependent')
and
there is no SDK on the server installed.
Mainly, you have to rethink your application if it is really necessary that your t4 template has to be compiled at runtime.
If so, use an appropriate version of Mono.Texttemplating that supports the environment variable DOTNET_ROOT which should point to the installed SDK on the server.
Mono.TextTemplating.TemplatingEngineException: Not a valid .NET Core host
at Mono.TextTemplating.TemplatingEngine.GetOrCreateCompiler() in /_/Mono.TextTemplating/Mono.TextTemplating/TemplatingEngine.cs:line 67
at Mono.TextTemplating.TemplatingEngine.CompileCode(IEnumerable
1 references, TemplateSettings settings, CodeCompileUnit ccu, CancellationToken token) in /_/Mono.TextTemplating/Mono.TextTemplating/TemplatingEngine.cs:line 303 at Mono.TextTemplating.TemplatingEngine.CompileTemplateInternal(ParsedTemplate pt, String content, ITextTemplatingEngineHost host, TemplateSettings settings, CancellationToken token) in /_/Mono.TextTemplating/Mono.TextTemplating/TemplatingEngine.cs:line 277 at Mono.TextTemplating.TemplatingEngine.CompileTemplateAsync(String content, ITextTemplatingEngineHost host, CancellationToken token) in /_/Mono.TextTemplating/Mono.TextTemplating/TemplatingEngine.cs:line 207 at Mono.TextTemplating.TemplatingEngine.ProcessTemplateAsync(String content, ITextTemplatingEngineHost host, CancellationToken token) in /_/Mono.TextTemplating/Mono.TextTemplating/TemplatingEngine.cs:line 82 at Mono.TextTemplating.TemplateGenerator.ProcessTemplateAsync(String inputFileName, String inputContent, String outputFileName, CancellationToken token) in /_/Mono.TextTemplating/Mono.TextTemplating/TemplateGenerator.cs:line 172 at DocumentTemplateService.Globals.Implementations.T4TemplateService.T4TemplateService.ProcessTemplate(String template, Dictionary
2 parameters)The text was updated successfully, but these errors were encountered: