I find the answer as follows.
- Open the project file ObjectListView.csproj.
- Locate the line <TargetFrameworkVersion>2</TargetFrameworkVersion>
- Change 2 to 4.8
That will fix the error.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Dear All,
I encounter an error as follows. Could anyone suggest a solution?
The primary reference "C:\Users\Ben Tam\source\repos\NewTims\Library\bin\Debug\Library.dll" could not be resolved because it has an indirect dependency on the framework assembly "System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" which could not be resolved in the currently targeted framework. ".NETFramework,Version=v2.0". To resolve this problem, either remove the reference "C:\Users\Ben Tam\source\repos\NewTims\Library\bin\Debug\Library.dll" or retarget your application to a framework version which contains "System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
I find the answer as follows.
That will fix the error.