在命令行执行一个可执行文件后,我出现了以下异常:
"Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information."
通过在互联网上搜索该问题,我发现其中一种解决方法是配置App.Config文件。这在VS2010中有效,但在命令模式下仍会生成相同的错误。那么有没有办法通过使用命令行来解决这个问题,因为生成较新版本的.dll是不可能实现的。谢谢!