locked
VS2015 claims it does not support interpolated strings. RRS feed

  • Question

  • User783240086 posted

    Installed VS2015 RTM on a machine that also has VS2013. While in VS2015, when I try to use the new interpolated strings feature, I get an error stating that Visual Basic 12.0 does not support interpolated strings.

    It works on new projects but not on my existing project which has been migrated over the years through all the VS versions. Project worked fine in VS2013. Could some legacy setting left over in the web.config cause this?

    Also, why would the error state VB 12.0 when my project is opened in VS 2015? Isn't that VB 14.0?

    Wednesday, August 5, 2015 3:06 PM

Answers

All replies

  • User-166373564 posted

    Hi,

    Also, why would the error state VB 12.0 when my project is opened in VS 2015? Isn't that VB 14.0?

    It supports Interpolated strings in Visual Studio 2015. If you open the Visual Studio installed, you will notice that Microsoft Visual Studio 11.0, Visual Studio 12.0 and Visual Studio 14.0 are existed.

    For this issue, you can try upgrade your asp.net application to 4.5 and 4.6, and check whether it can fix it. further information: https://msdn.microsoft.com/en-us/library/jj152935(v=vs.110).aspx

    Please let me know if there is anything that I can do to help.

    With regards,

    Angie

    Thursday, August 6, 2015 2:28 AM
  • User783240086 posted

    I don't understand what your solution is. My project is already targetting .NET 4.5.1 but it won't let me use any of the new IDE features. No interpolated strings no "?" for cheking nulls, etc. These are new IDE features. It should not matter what .NET framework I am targetting. In fact, if I start a new project and target .NET 3.0 all the new IDE features still work. It is only with my existing Web Site project that the new features are not working and the IDE complains that they are not supported.

    Thursday, August 6, 2015 2:56 AM
  • User-166373564 posted

    Hi,

    While in VS2015, when I try to use the new interpolated strings feature, I get an error stating that Visual Basic 12.0 does not support interpolated strings.

    It supports interpolated strings in Visual Studio 2015, if this is a VS issue, you could consider repairing VS 2015, and check whether it can fix it.

    Could some legacy setting left over in the web.config cause this?

    For this issue, it's recommended to check your migration procedure, use correct .net framework, etc. Or follow the error messages you got to troubleshoot.

    With regards,

    Angie

    Monday, August 10, 2015 2:06 AM
  • User783240086 posted

    I tried repairing VS 2015. That didn't work.

    There is no migration procedure. VS2015 is supposed to load VS2013 projects and vise versa with no conversion. And the error message is of no indication to what is wrong.

    Monday, August 10, 2015 6:04 AM
  • User-166373564 posted

    Hi,

    And the error message is of no indication to what is wrong.

    Click Tool menu, in the Options window, find Projects and Solutions >> Build and Run. Find Diagnostic in the drop-down for MSBuild project build output verbosity. Perhaps it will help you.

    With regards,

    Angie

    Thursday, August 13, 2015 1:25 AM
  • User783240086 posted

    Found the answer here if anyone else has the same problem. It looks like the Roslyn compiler for Web Site project types is not icluded with VS2015 and must be downloaded separately. See: http://blogs.msdn.com/b/webdev/archive/2014/05/12/enabling-the-net-compiler-platform-roslyn-in-asp-net-applications.aspx

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, August 17, 2015 10:30 PM