Does anyone have any T4 example Templates that can be used to generate a Webservice?

StackOverflow https://stackoverflow.com/questions/233082

  •  04-07-2019
  •  | 
  •  

Question

Does anyone have any T4 example Templates (or links to same) that can be used to generate a Webservice?

I'm thinking of the fact that I guess the Webservice is not just the Vb or Cs field but also requires an appropriate asmx file.

I'm really not sure how to achieve this

Was it helpful?

Solution

Oleg Sych: How to generate multiple outputs from single T4 template; create another method that generates your asmx - should be pretty simple, as it's one line - and renders it to a file.

T4 Toolbox also has some methods that are helpful for this. Oleg Sych's site also has other articles that will guide you through it, particularly these:

OTHER TIPS

Perhaps Web Service Software Factory will do what you need right out of the box. As I understand, it generates code with T4 templates you can extend.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top