mirror of
https://gitee.com/ccnetcore/Yi
synced 2026-03-20 16:36:37 +08:00
上传T4模板
This commit is contained in:
1
Yi.Framework/Yi.Framework.Interface/T4IService.cs
Normal file
1
Yi.Framework/Yi.Framework.Interface/T4IService.cs
Normal file
@@ -0,0 +1 @@
|
||||
|
||||
15
Yi.Framework/Yi.Framework.Interface/T4IService.tt
Normal file
15
Yi.Framework/Yi.Framework.Interface/T4IService.tt
Normal file
@@ -0,0 +1,15 @@
|
||||
<#@ template debug="false" hostspecific="true" language="C#" #>
|
||||
<#@ assembly name="System.Core" #>
|
||||
<#@ import namespace="System.Linq" #>
|
||||
<#@ import namespace="System.Text" #>
|
||||
<#@ import namespace="System.Collections.Generic" #>
|
||||
<#@ import namespace="System.Reflection" #>
|
||||
<#@ import namespace="System.IO" #>
|
||||
<#@ output extension=".cs" #>
|
||||
|
||||
<#
|
||||
string solutionsPath = Host.ResolveAssemblyReference("$(SolutionDir)");//获取解决方案路径
|
||||
Assembly assembly = Assembly.LoadFrom(System.IO.Path.Combine(solutionsPath, @"Yi.Framework.ApiMicroservice\bin\Debug\net5.0\Yi.Framework.Model.dll"));
|
||||
Type[] ts = assembly.GetTypes();
|
||||
|
||||
#>
|
||||
Reference in New Issue
Block a user