-
Notifications
You must be signed in to change notification settings - Fork 124
Visual Studio hangs when running a T4 template which generates more than one file #399
Comments
+1 I'm also experiencing this. |
+1 |
Thanks for the report |
You should be able to avoid this behavior by changing |
Thanks @mlorbetske. I have to admit I don't really know much T4. I tried that change, but the template generates this error when it runs now:
I pushed the change in my sample repro here. /cc @davidebbo |
On line 2653, this code /cc @sayedihashimi |
Thanks @mlorbetske that seems to fix it.
Yes, it's the stock T4MVC template. It looks like we have some work to do if we want to support MVC Core. I'll continue that conversation with @davidebbo over at T4MVC/T4MVC#65. @DrLeh, @Reonekot does @mlorbetske's suggested changes fix the issues you are seeing too? |
The GitHub Issue Tracker for the aspnet/Tooling repo is being deprecated in favor of Visual Studio's Report a Problem tool. If this issue is still a problem with the RTW release of Visual Studio 2017, please report a new issue using the Report a Problem tool. While you can still use .NET Core and ASP.NET Preview tools with Visual Studio 2015, Visual Studio 2017 is now the officially supported tool for developing .NET Core and ASP.NET Core projects. By using the Report a Problem tool (available in both VS 2017 and VS 2015), you can collect detailed information about the problem, and send it to Microsoft with just a few button clicks. See Visual Studio's Talk to Us page for more details. Please use the discussion topic here for feedback and questions on the deprecation of this issue tracker. Thanks! |
If anyone else is running into this using EntityFrameworkTemplateFileManager in a tt template (among other things, the default database-first setup with an edmx uses this), you can use the file manager from this project instead: https://github.com/renegadexx/T4.Helper You'll need to include a reference to |
As discussed in aspnet/Home#272, trying to run T4MVC in a MVC Core 1 application causes Visual Studio to hang.
I have posted a sample repro here: https://github.com/kevinkuszyk/aspnet-core-t4mvc.
The text was updated successfully, but these errors were encountered: