路径获取
① 获取当前解决方案路径
string solutionsPath = Host.ResolveAssemblyReference("$(SolutionDir)");
② 获取当前项目路径
string projectPath = Host.ResolveAssemblyReference("$(ProjectDir)");
T4模板使用笔记
原文:http://www.cnblogs.com/ideacore/p/7803606.html