简体   繁体   English

无法识别Microsoft.CSharp参考

[英]Microsoft.CSharp reference not recognized

I'm having a problem with MVC . 我在使用MVC遇到问题。 The tricky thing is that the problem appeared when I installed Windows 8 . 棘手的是,当我安装Windows 8时出现了问题。 In Windows 7 I have never ecountered it. Windows 7我从未遇到过。 I created a new MVC 4 project in Visual Studio 2012 and all my views are messed up ( Viewbag, helpers and everything ). 我在Visual Studio 2012创建了一个新的MVC 4项目,我的所有视图都被弄乱了(Viewbag,helpers等)。 ( framework targeted is 4.5 ) (目标框架为4.5)

Error message: One or more types required to compile a dynamic expression cannot be found. 错误消息: 找不到编译动态表达式所需的一种或多种类型。 Are you missing a reference? 您是否缺少参考?

I have tried a lot of stuff. 我尝试了很多东西。 I have read this stackoverflow link , another stackoverflow link and another one ! 我已经阅读了这个stackoverflow链接另一个stackoverflow链接另一个 链接 Nothing works. 没用。 I have also reinstalled VS2012 . 我还重新安装了VS2012

Any ideas why that error message appears in every View ? 任何想法,为什么该错误消息会出现在每个View

try to install VS2012 Update 3. While the Visual Studio is not running, remove all Bin and Obj folders. 尝试安装VS2012 Update3。在未运行Visual Studio的同时,删除所有Bin和Obj文件夹。 When VS losts in the references it often solves the problems. 当VS在参考文献中遗失时,通常可以解决问题。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法找到参考组件Microsoft.CSharp - Reference Component Microsoft.CSharp could not be found Microsoft.CSharp库中的BadImageFormat异常 - BadImageFormat Exception at Microsoft.CSharp library Xamarin Android 错误“无法解析引用:`System.Dynamic`,由`Microsoft.CSharp` 引用” - Xamarin Android Error "Can not resolve reference: `System.Dynamic`, referenced by `Microsoft.CSharp`" 主要参考“Microsoft.CSharp”是一个框架程序集,无法在当前目标框架中解析 - The primary reference “Microsoft.CSharp”, which is a framework assembly, could not be resolved in the currently targeted framework 为什么面向.Net Standard的库需要Microsoft.Csharp - Why do libraries targeting .Net Standard need Microsoft.Csharp 发现无法解决的不同版本的“Microsoft.CSharp”之间的冲突 - Found conflicts between different versions of "Microsoft.CSharp" that could not be resolved C#Compiler-as-a-Service:Mono.CSharp与Microsoft.CSharp - C# Compiler-as-a-Service: Mono.CSharp vs Microsoft.CSharp 使用不是管理员组成员的用户登录时无法加载文件或程序集“Microsoft.CSharp” - Could not load file or assembly 'Microsoft.CSharp' when logged in with user which is not a member of administrator group 尝试导出 fastreport 报告时无法找到元数据文件“Microsoft.CSharp”错误 - Getting a Metadata file 'Microsoft.CSharp' could not be found error upon trying to export a fastreport report 缺少编译器所需的成员,但已添加 Microsoft.CSharp package - Missing compiler required member but have already added Microsoft.CSharp package
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM