Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/image/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
编辑我的VS 2015社区以创建一些脚本。在向属性添加默认值时,出现了一个编译器错误,显示为红色的非线形,表示我需要c#6,因为c#v.4当前已加载。每当我尝试选择项目的属性时,屏幕就会闪烁,但不会出现页面。 if (!string.IsNullOrWhi_C#_Asp.net Mvc_Visual Studio 2015_Roslyn_C# 6.0 - Fatal编程技术网

编辑我的VS 2015社区以创建一些脚本。在向属性添加默认值时,出现了一个编译器错误,显示为红色的非线形,表示我需要c#6,因为c#v.4当前已加载。每当我尝试选择项目的属性时,屏幕就会闪烁,但不会出现页面。 if (!string.IsNullOrWhi

编辑我的VS 2015社区以创建一些脚本。在向属性添加默认值时,出现了一个编译器错误,显示为红色的非线形,表示我需要c#6,因为c#v.4当前已加载。每当我尝试选择项目的属性时,屏幕就会闪烁,但不会出现页面。 if (!string.IsNullOrWhi,c#,asp.net-mvc,visual-studio-2015,roslyn,c#-6.0,C#,Asp.net Mvc,Visual Studio 2015,Roslyn,C# 6.0,编辑我的VS 2015社区以创建一些脚本。在向属性添加默认值时,出现了一个编译器错误,显示为红色的非线形,表示我需要c#6,因为c#v.4当前已加载。每当我尝试选择项目的属性时,屏幕就会闪烁,但不会出现页面。 if (!string.IsNullOrWhiteSpace(Model.Profile?.TypeName)) { // More logic here... } PM> Install-Package Microsoft.CodeDom.Providers.DotNet

编辑我的VS 2015社区以创建一些脚本。在向属性添加默认值时,出现了一个编译器错误,显示为红色的非线形,表示我需要c#6,因为c#v.4当前已加载。每当我尝试选择项目的属性时,屏幕就会闪烁,但不会出现页面。
if (!string.IsNullOrWhiteSpace(Model.Profile?.TypeName))
{
    // More logic here...
}
PM> Install-Package Microsoft.CodeDom.Providers.DotNetCompilerPlatform
  <system.codedom>
    <compilers>
      <compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" warningLevel="4" compilerOptions="/langversion:6 /nowarn:1659;1699;1701">
          <providerOption name="CompilerVersion" value="v4.0"/>
      </compiler>
      <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.VBCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:14 /nowarn:41008 /define:_MYTYPE=\&quot;Web\&quot; /optionInfer+"/>
    </compilers>
  </system.codedom>
type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" 
  <system.codedom>
    <compilers>
      <compiler language="c#;cs;csharp" extension=".cs"
        type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
        warningLevel="4" compilerOptions="/langversion:6 /nowarn:1659;1699;1701"/>
      <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb"
        type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.VBCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
        warningLevel="4" compilerOptions="/langversion:14 /nowarn:41008 /define:_MYTYPE=\&quot;Web\&quot; /optionInfer+"/>
    </compilers>
  </system.codedom>
<compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:7 /nowarn:1659;1699;1701" />
<compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.VBCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:15 /nowarn:41008 /define:_MYTYPE=\&quot;Web\&quot; /optionInfer+" />