当我在我的方法上面应用标签时,我得到了错误
Type System.Runtime.CompilerServices.Extension is not defined.
这是我的样本
<System.Runtime.CompilerServices.Extension()> _ Public Sub test() End Sub
我哪里错了?
Imports System.Runtime.CompilerServices Module StringExtensions _ Public Sub Print(ByVal aString As String) Console.WriteLine(aString) End Sub End Module
我在我的项目中使用Visual Studio 2008和3.5 Framework.
Solution ~ The project was on 2.0 Framework. Changed to 3.5 and it works.