Add a link to a file using a custom scaffolder.

Mar 6, 2012 at 9:51 AM


First of all, I am amazed by the power of the libriary. It works amazing. Thanks to everybody who took part in the development of it.

I have read the Steve Sanderson article about the custom scaffolder generation, and created a custom scaffolder for our project. It adds a lot files and bits of code to several classes. This is working just great. But now I am facing the problem, I need to add links to the generated DTOs in the client project. And it looks like there is no easy way to do it.

I am messing with DTE interfaces for a day I believe, and cant find a solution to my problem.

I would really apreciate any help on the topic.

Sorry for the grammar.

Mar 12, 2012 at 3:50 PM

Here is the code snippet which does what I want:


$targetFolder = Get-ProjectFolder "Services" -Project "ServiceModel.Silverlight"
= Get-ProjectItem $ServiceInterfaceOutputPath -Project "ServiceModel"