0
我已经安装了Windows SP2 SP2的全新副本,然后安装了VS.net 2008企业版。我正在尝试构建一个最简单的Web应用程序,并且它没有编译错误csc.exe找不到。我用Google搜索了很多,发现问题在下面的部分在web.config中:找不到csc.exe错误
<system.codedom>
<compilers>
<compiler language="c#;cs;csharp" extension=".cs" warningLevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<providerOption name="CompilerVersion" value="v3.5"/>
<providerOption name="WarnAsError" value="false"/>
</compiler>
<compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" warningLevel="4" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<providerOption name="CompilerVersion" value="v3.5"/>
<providerOption name="OptionInfer" value="true"/>
<providerOption name="WarnAsError" value="false"/>
</compiler>
</compilers>
</system.codedom>
但如果我删除CSHARP编译器部分,然后再编译,它编译罚款与VB编译器部分。 如果我在csharp部分将值从v3.5更改为v2.0,那么它也编译得很好。但是,然后我的所有Linq查询都无法被编译器识别。但System.Linq和其中存在的所有类都可以在代码中访问。 请帮助这种奇怪的行为。
万岁长尾巴。那也是我的问题。谢谢! – 2009-12-27 23:43:56
接受你自己的答案作为正确答案 – abatishchev 2010-07-25 11:21:51