问题标签 [compileassemblyfromsource]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
737 浏览

c# - 如何在不重新编译的情况下从 CSharpCodeProvider 访问已编译的程序集

我有 Microsoft.CSharp.CSharpCodeProvider CompileAssemblyFromSource 工作。它肯定会创造并返回我需要的东西。

我知道编译后的代码最终会出现在程序集中,并且在应用程序域被处置之前不能被删除。

您如何重用编译后的调用,而不必每次都调用 CompileAssemblyFromSource(myParams, myScript)?

如果我设置 myParams.OutputAssembly = 'MyAssembly"; 我似乎无法实例化它的实例。

如果代码在内存中,我如何检查它是否存在以及如何在不调用 CompileAssemblyFromSource() 的情况下重新加载它?

0 投票
1 回答
168 浏览

c# - I can't change other Class var value with CompileAssemblyFromSource

i try to use CompileAssemblyFromSource to change 1 value at my main class. But when i compile i get error "Could not load file or assembly or one of its dependencies" and this only happens when i try change static value of other class. But if i return some output or wrote anything at Console from this FooClass than all work's fine. But how can i change value of other class?

0 投票
1 回答
165 浏览

c# - CompileAssemblyFromSource + 混淆 = 不起作用

我有工作 CompileAssemblyFromSource 代码。但是,当我使用 RedGate SmartAssembly 或 Themida 等任何代码保护器时,它会停止工作,并且出现错误“无法加载文件或程序集或其依赖项之一”。你能帮我吗?

0 投票
1 回答
160 浏览

c# - CSharpCodeProvider,编译时的进度信息

我从随机大小的数据在内存中生成一些代码。这可以生成类似 15K 的类,甚至更多。代码存储在我与类中的CompileAssemblyFromSource方法一起使用的列表中CSharpCodeProvider

问题是,在编译时,我想要一份进度报告,或者可能是正在发生的事情的输出。目前,我的应用程序只是坐在那里等待 5 或 10 分钟。

有没有办法知道这需要多少时间,或者看看发生了什么。也许是另一个想法?我希望答案不仅仅是一条信息说这个过程可能需要几分钟。

0 投票
0 回答
45 浏览

build - 如何从源代码构建 CEF 而不会获得无法识别的命令行选项“-m64”

我正在关注https://github.com/chromiumembedded/cef-project。问题是,当涉及到这 make -j4一步时,我得到了这个错误:

我不知道是什么原因造成的,也不知道它代表什么。我正在尝试在 Ubuntu 20.04 ARM64 机器上构建。