T4包括从项目的根文件路径 [英] T4 Include file path from project root

查看:126
本文介绍了T4包括从项目的根文件路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我怎么能包含文件相对于项目的根?财产以后像<#@包括文件=〜/基础设施/ Manager.ttinclude#>

How can I include file relatively to project root? Somthing like <# @include file="~/Infrastructure/Manager.ttinclude" #>

推荐答案

您应该使用 $(PROJECTDIR)

<#@ include file="$(ProjectDir)\Infrastructure\Manager.ttinclude" #>

您也可以使用 $(SolutionDir)的解决方案的根。

You can also use $(SolutionDir) for the Solution root.

这篇关于T4包括从项目的根文件路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆