我运行代码时Csharp的问题 [英] problem with Csharp when I run a code

查看:157
本文介绍了我运行代码时Csharp的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好

我是csharp的初学者,当我尝试在visual csharp 2010中运行代码时,收到此消息"L",在运行时混合了版本"v1.1.4322",并在运行时发布了新版本在运行时4.0版本中保留所有配置信息.
我正在使用Windows 7,我的框架工作是.net 4.0
你能给我一个解决方案吗?
谢谢:)

Hello

I''m a beginner in csharp, when I try to run a code in visual csharp 2010 I get this message "L''assembly en mode mixte est créé avec la version ''v1.1.4322'' du runtime et ne peut pas être chargé dans le runtime 4.0 sans d''autres informations de configuration".
I''m using windows 7, my frame work is .net 4.0
can you give me a solution please?
And thank you :)

推荐答案

This[^] page may help you...


错误翻译为

程序集是在混合模式下使用版本"v1.1.4322"运行时创建的,无法在没有其他配置信息的情况下加载到运行时4.0中"
http://stackoverflow.com/questions/4018924/mixed-mode-assembly-is-built-against-version-v1-1-4322 [
Error translates as

"The assembly is created in mixed mode with version ''v1.1.4322'' runtime and can not be loaded into the runtime 4.0 with no other configuration information"

http://stackoverflow.com/questions/4018924/mixed-mode-assembly-is-built-against-version-v1-1-4322[^]

So, looks like you need to add some config settings

<startup uselegacyv2runtimeactivationpolicy="true">
   <supportedruntime version="v4.0" sku=".NETFramework,Version=v4.0" />
</startup>


这篇关于我运行代码时Csharp的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆