Serenity: Crash VS when build T4 Template

Created on 12 Sep 2016  路  3Comments  路  Source: serenity-is/Serenity

Hi,
strange behavior of VS (only on my local istance on Windows 10)
When I try to build T4 Template, Visual Studio crash. No way.
Going to check line by line ClientTypes.tt file, I found that crash occurs here:

var tsTypeLister = new TSTypeLister(webDir);
var tsTypes = tsTypeLister.List();

Any suggestions?
Thank's

Most helpful comment

Find var jsEngine = new MsieJsEngine() in CodeGenerationHelpers.ttinclude and replace it with var jsEngine = new MsieJsEngine(new JsEngineSettings { EngineMode = JsEngineMode.ChakraIeJsRt, UseEcmaScript5Polyfill = true, UseJson2Library = true });

This is something related to Edge javascript engine in anniversary update.

All 3 comments

I had a similar problem (#1058).
I found that VS2015 requires update 3 and that the files mentioned in issue 1058 NOT be updated.

HTH

Find var jsEngine = new MsieJsEngine() in CodeGenerationHelpers.ttinclude and replace it with var jsEngine = new MsieJsEngine(new JsEngineSettings { EngineMode = JsEngineMode.ChakraIeJsRt, UseEcmaScript5Polyfill = true, UseJson2Library = true });

This is something related to Edge javascript engine in anniversary update.

Works like a charm!!
Great Volkan!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ga5tan picture ga5tan  路  3Comments

GitHubOrim picture GitHubOrim  路  3Comments

Amitloh picture Amitloh  路  3Comments

dudeman972 picture dudeman972  路  3Comments

ahsansolution picture ahsansolution  路  3Comments