T4模板獲取解決方案、項目路徑

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