mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-19 20:38:16 +08:00
v0.1.10
- 修复 FreeSql.Repository GuidRepository/GetGuidRepository 缓存 bug; - 修复 Lazy 延时加载在 linux 发布后产生 Bad IL Format bug;
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netstandard2.0</TargetFramework>
|
||||
<Version>0.1.9</Version>
|
||||
<Version>0.1.10</Version>
|
||||
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
|
||||
<Authors>YeXiangQin</Authors>
|
||||
<Description>打造 .NETCore 最方便的 ORM,DbFirst 与 CodeFirst 混合使用,提供从实体同步数据库,或者从数据库生成实体代码,支持 MySql/SqlServer/PostgreSQL/Oracle/Sqlite 数据库。</Description>
|
||||
|
@ -545,14 +545,18 @@ return rTn;");
|
||||
return Activator.CreateInstance(type) as ITemplateOutput;
|
||||
}
|
||||
internal static Lazy<CSScriptLib.RoslynEvaluator> _compiler = new Lazy<CSScriptLib.RoslynEvaluator>(() => {
|
||||
var dlls = Directory.GetFiles(Directory.GetParent(Type.GetType("IFreeSql, FreeSql").Assembly.Location).FullName, "*.dll");
|
||||
//var dlls = Directory.GetFiles(Directory.GetParent(Type.GetType("IFreeSql, FreeSql").Assembly.Location).FullName, "*.dll");
|
||||
var compiler = new CSScriptLib.RoslynEvaluator();
|
||||
compiler.DisableReferencingFromCode = false;
|
||||
compiler.DebugBuild = true;
|
||||
foreach (var dll in dlls) {
|
||||
var ass = Assembly.LoadFile(dll);
|
||||
compiler.ReferenceAssembly(ass);
|
||||
}
|
||||
//foreach (var dll in dlls) {
|
||||
// Console.WriteLine(dll);
|
||||
// var ass = Assembly.LoadFile(dll);
|
||||
// compiler.ReferenceAssembly(ass);
|
||||
//}
|
||||
compiler
|
||||
.ReferenceAssemblyOf<IFreeSql>()
|
||||
.ReferenceDomainAssemblies();
|
||||
return compiler;
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user