Reputation: 870
I have a C# application that works fine when compiled with a Target Framework of 4.5.2. However, when I change that setting in Visual Studio (Version 14.0.25424.00 Update 3) to 3.5 I get a bunch of errors and I am (obviously) not able to compile. Some of the errors I see have to do with trying to use the following namespaces and types:
I saw some other posts about trying to modify the references and add a new System.Core library but nothing has worked so far.
Upvotes: 1
Views: 556
Reputation: 8370
Remove and re-add references to System.Core.dll
and mscorlib.dll
.
The Task
class will not be available as it was only added in .NET 4.0. You could use the nuget package Task Parallel Library for .NET 3.5 which is a backport of Task
that works on .NET 3.5.
Upvotes: 1