Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using templates in PCL Project (design time generation) #50

Open
TheMiller2015 opened this issue Aug 22, 2017 · 1 comment
Open

Using templates in PCL Project (design time generation) #50

TheMiller2015 opened this issue Aug 22, 2017 · 1 comment
Labels

Comments

@TheMiller2015
Copy link

Hello,

I would like to use t4 and your toolbox in a PCL project (platform-independent api). For building my entities, I want to create a template for outputting multiple files. But when I try to Add -> new item, the t4 toolbox section (and also the t4 tanglible) doesn't appear.

My PCL is .NET 4.5, ASP.Net Core 1.0, Xamarin (Android, iOS (+Classic), Mac).

But I thought the code generation is not in a relation with the assembly, since this code is generated during design-time. So it should not matter, what target the project is.

Thanks!

@olegsych
Copy link
Owner

This could be a simple matter of T4 Toolbox not supplying project item templates for this particular project type.

  • Is Text Template available in the list of project item templates for PCL projects?
  • Alternatively, if you add a Text File with .tt extension, does it have the Custom Tool property set to TextTemplatingFileGenerator in the Properties window of Visual Studio?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants