本文介绍了功能“插值字符串”在C#5中不可用。请使用语言版本6或更高版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对此有一个类似的问题


There is a similar question to this here but I believe that involves a different cause.

I moved a class from a newer project into an older project. Both were targeting .net 4.6 however after the move I received the following error on build.

I tried setting my project to build with C# 6 in the properties window with no change.

解决方案

I eventually found the place to change it. It seems sometimes when you update your targets framework version this does not get changed.

这篇关于功能“插值字符串”在C#5中不可用。请使用语言版本6或更高版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-24 14:58