Visual Studio 2015编译错误 [英] Visual studio 2015 compile error

查看:153
本文介绍了Visual Studio 2015编译错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

更新后" KB3186568"字符串插值(意思是这样的字符串:$" Hello {var}")不再有效,并显示为 以下编译
错误编译错误:  "
错误CS1056:意外字符'$'"

After update "KB3186568" string interpolation (meaning string that looks like this: $"Hello {var}") no longer works, and shows up as the following compile error compile error:  "Error CS1056: Unexpected character '$'"

我正在使用 Visual Studio Community 2015版本14.0.25431.01更新3
.Net Framework版本4.7.02053

我找到的唯一解决方案是卸载更新,但遗憾的是更新总是在第二天自动重新安装......

The only solution I have found is to uninstall the update, but unfortunately the update always automatically re-installs the next day...

推荐答案

嗨Mark,

感谢您在MSDN论坛上发帖。

Thank you for posting in MSDN forum.

您的操作系统是Win 10还是服务器2016年安装了.Net Framework 4.7?请参阅:

Is your OS Win 10 or Server 2016 and .Net Framework 4.7 installed? Please see:

用于Windows 10版本1607和Windows Server 2016的Microsoft .NET Framework 4.7

推荐更新( KB3186568
可以根据Windows Update上的计算机设置自动安装在所有支持的平台上。

A recommended update (KB3186568) may be installed automatically on all supported platforms based on your computer settings on Windows Update.

我在安装.Net Framework 4.7后遇到了一些关于应用程序崩溃的案例,他们通常通过卸载.Net Framework 4.7来解决问题。

I met some cases about application crashing after installing the .Net Framework 4.7, they usually solved issue by uninstalling .Net Framework 4.7.

若要解决此问题,请尝试下列之一:

To work around this problem, please try one of the following:


  • 卸载.NET Framework 4.7。
  • 使用Win使用PowerShell cmdlet管理DFS。
  • 使用Windows 10版本1703或Windows Server 2016 RS3或更高版本。

请执行上述操作后仍出现任何问题请随时与我们联系。

Any problem persists after doing above please feel free to contact us.

最诚挚的问候,


这篇关于Visual Studio 2015编译错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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