Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Behrouz
#1 Posted : Saturday, October 14, 2017 1:43:52 PM(UTC)
Behrouz
Rank: Newbie

Groups: Member
Joined: 10/14/2017(UTC)
Posts: 2
Iran (Islamic Republic Of)

I have the following simple code:

<#@ template debug="false" hostspecific="true" language="C#" #>
<#@ output extension=".cs" #>
<#@ assembly name="System.Core" #>
<#@ import namespace="System.Linq" #>
<#@ import namespace="System.Text" #>
<#@ import namespace="System.Collections.Generic" #>
<#@ include file="TemplateFileManagerV2.1.ttinclude" #>
<#
var manager = TemplateFileManager.Create(this);
manager.CanOverrideExistingFile = true;
manager.IsAutoIndentEnabled = true;

manager.StartNewFile("Outputfile2.cs");
#>
Hello
<#
manager.Process(true);
#>

When I run the T4 template, VS 2017 is not responding and is frozen.
Any idea?
Behrouz
#2 Posted : Sunday, October 15, 2017 7:52:54 AM(UTC)
Behrouz
Rank: Newbie

Groups: Member
Joined: 10/14/2017(UTC)
Posts: 2
Iran (Islamic Republic Of)

I dound the solution.

It seems there is a bug when we are using tangible T4 Editor 2.4.0 with ASP.NET Core MVC, in the case of producing multiple files.
The problem is on line 263 of TemplateFileManagerV2.1.ttinclude and will be fized with replacing this line:

projectSyncAction.EndInvoke(projectSyncAction.BeginInvoke(list, null, null));

with the following one:

projectSyncAction(list);
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF | YAF © 2003-2020, Yet Another Forum.NET
This page was generated in 0.069 seconds.

Authorization on the site

For an authorized user opens up new possibilities

Login

Password