dimanche 3 mai 2015

Creating an item in two seperate projects in a vsTemplate

I want to be able to create a new class in my main project which contains a visitor method (This works fine so far) which is quite complex, containing a fair number of configuration items which then goes on to automatically configure numerous other components.

However my blocker for the moment is that I want 2 unit tests generated from the visitor method, one false, one true. I have written a unit test builder so this is simple to write the template. However I have no idea how to place the template in the unit test project.

tldr; How do you place a file from a vsTemplate in a separate project. Is this even possible?

Or do I have to create an add-in that generates the unit test from the generated item?

Aucun commentaire:

Enregistrer un commentaire