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

T4 Template no longer build #405

Open
krugertech opened this issue Jul 6, 2017 · 12 comments
Open

T4 Template no longer build #405

krugertech opened this issue Jul 6, 2017 · 12 comments

Comments

@krugertech
Copy link

Your T4 template [PetaPoco.Core.ttinclude] contains a new line after #> which will cause it to fail as no literals are allowed outside of those brackets.

check --> PetaPoco.Core.ttinclude
remove new line at the end of the file.

@pleb
Copy link
Member

pleb commented Jul 6, 2017

The GH source view isn't showing it. Can you PR to the dev branch?

@ramseur
Copy link

ramseur commented Jul 14, 2017

I removed the line and it still doesnt work.

@ramseur
Copy link

ramseur commented Jul 14, 2017

I found out that your build doesnt work in .net 4.5.2 or prob .net 4.5. I had to downgrade to .net 4 to get it to work.

@ramseur
Copy link

ramseur commented Jul 14, 2017

switching to dapper because it simply doesnt work

@krugertech
Copy link
Author

@ pleb
The issue is in the latest version of the nuget package v5.1.259.

@ramseur
I'm using .net 4.5 without issues. I did use the nuget package tho, and did not build from source.

@Sjaaky
Copy link

Sjaaky commented Jul 26, 2017

The .tt and .ttinclude files in the PetaPoco 5.1.259 nuget package use LF line endings. After converting them to CR-LF line endings, database.cs is generated succesfully.

@pleb
Copy link
Member

pleb commented Jul 26, 2017 via email

@Sjaaky
Copy link

Sjaaky commented Jul 27, 2017

I wasn't planning on making a PR, sorry.

@6pac
Copy link
Contributor

6pac commented May 4, 2018

see comment on #368

@hippasus
Copy link

hi, do you want to try this tool PetaPoco.DBEntityGenerator I just built? I've ported the T4 template into this tool. It supports net core.

@krugertech
Copy link
Author

hi, do you want to try this tool PetaPoco.DBEntityGenerator I just built? I've ported the T4 template into this tool. It supports net core.

Cool beans. I'm giving it a try.

@pleb
Copy link
Member

pleb commented Aug 2, 2019

@hippasus I've added your tool to the Add-ons list. Nice work!

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

No branches or pull requests

6 participants