The issue is #1785
I add a new method CreateAssemblyGen in ClrModule to get AssemblyGen, so that I can add exe host code into ScriptCode assembly. Then I change the init code from
since the ScriptCode assembly is itself.
But now it have some new problem. Since the AssemblyBuilder dose not have DefineIconResource method, I have no ideal to add win32 icon. And the Windows Defender said it is viruses when /standalone option is on...
PS. I use reflection to invoke SavableScriptCode.CompileForSave since SavableScriptCode is in DLR repository. It is better to add CreateAssemblyGen method for SavableScriptCode.
The issue is #1785 I add a new method
CreateAssemblyGen
inClrModule
to getAssemblyGen
, so that I can add exe host code into ScriptCode assembly. Then I change the init code fromto
since the ScriptCode assembly is itself. But now it have some new problem. Since the
AssemblyBuilder
dose not haveDefineIconResource
method, I have no ideal to add win32 icon. And the Windows Defender said it is viruses when/standalone
option is on...PS. I use reflection to invoke
SavableScriptCode.CompileForSave
sinceSavableScriptCode
is inDLR
repository. It is better to addCreateAssemblyGen
method forSavableScriptCode
.