T4 template adding assembly of existing project in solution

后端 未结 4 698
孤独总比滥情好
孤独总比滥情好 2021-02-02 06:03

Hi I need to add the assembly of an an existing project in my solution in my T4 Template file. The problem is that my T4 template is in a project called Project.WebApi and the c

4条回答
  •  梦谈多话
    2021-02-02 06:35

    In case your project with T4 template has direct reference to the project, you can use $(TargetDir)

    <#@ assembly name="$(TargetDir)Project.Common.WebApi.dll" #>

提交回复
热议问题