T4模板获取解决方案、项目路径

<# string solutionsPath = Host.ResolveAssemblyReference("$(SolutionDir)"); string projectPath = Host.ResolveAssemblyReference("$(ProjectDir)"); string a = Path.GetDirectoryName(Host.TemplateFile); #> <#=solutionsPath#> <#=projectPath#> <#=a#>
相关文章
相关标签/搜索