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

Notification

Icon
Error

Greg Bell
#1 Posted : Thursday, June 7, 2018 11:15:26 AM(UTC)
Greg Bell
Rank: Newbie

Groups: Member
Joined: 6/7/2018(UTC)
Posts: 3
Australia
Location: Peth

Hi,

I've a Code Generation project in a solution and I'm using T4 templates to generate code with the help of the TemplateFileManager (2.1). One of the problems I've run into is that if the project in question, in my case a standard ASP.NET Web API project has multiple folders with the same name in it, I can't target the folder correctly, as TemplateFileManager just puts the files in the first folder it finds, which is not the correct folder.

i.e.
API
|-App_Data
|-App_Start
|-Areas
|-HelpPage
|-Controllers <-- This is where the generated files are ending up.
|-Content
|-Controllers <-- This is where they should be.
|-fonts
|-Models
...

Anyone have any idea how I can target the main Controllers folder? I don't at this point know if I can rename the folder or not.

Thanks
Greg Bell
#2 Posted : Friday, June 8, 2018 5:20:52 AM(UTC)
Greg Bell
Rank: Newbie

Groups: Member
Joined: 6/7/2018(UTC)
Posts: 3
Australia
Location: Peth

FYI: I renamed the HelpPage/Controllers folder without detriment to the project, so this is one solution.
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.074 seconds.

Authorization on the site

For an authorized user opens up new possibilities

Login

Password