I'm doing a CodeFluent Entities project and I use the Template Producer to generate a report that print some statistics about my model.
As I could see, this Producer automatically add two references (CodeFluent.Runtime.dll and CodeFluent.Runtime.Web.dll). This is a great feature, nevertheless in my case, I don't generate any C# classes so the target project don't really need those references.
How can I disable this behavior ?
The Template producer inherits from the
CodeDomProducer
(the one that generates the BOM). This allows the template producer to have some useful methods likeAddToGeneratedFiles
that adds the file to Visual Studio target project, orAddCompilationReferences
which adds references to the target project.The producer also inherits some configuration options like
Target Project Layout
of typeCodeFluent.Model.Design.TargetProjectLayoutOptions
As you can see this allows you to not update project references. So to answer your question, your producer configuration should look like
Happy templating :)