C# Error “Is not supported by the language” after migration to .Net4

前端 未结 8 1740
旧时难觅i
旧时难觅i 2021-02-05 03:58

I\'m trying to migration our website from .Net 3.5 to 4 and I\'m encountering a very weird issue.

Code that works just fine in 3.5 does not anymore once I target .Net4,

8条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-05 04:27

    This also happens when a lower library is using a different versionof the .NET Framework. Had a similar issue and when I updated the Lower Libraries to 3.5 framework and the actual library to the 3.5 framework the problem went away.

提交回复
热议问题