I'm trying to add a .dll. This .dll was part of the project already, but today it started not working. I've tried re-adding it, and even re-adding different versions of it clear back from 2009, I keep getting the same error.
Here is the error: The primary reference "myDLL" could not be resolved because it has an indirect dependency on the framework assembly "System.Core, Version=3.5.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 "myDLL" or retarget your application to a framework version which contains "System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089".
The project is in .NET 2.0, upgrading it to 3.5 or 4.0 is not an option.
The current version of the myDLL, which is the one that is also GAC'd, is compiled as 3.5, but (a) it has worked up until today and (b) even the older 2.0 versions I've pulled in still give this error.
One of my co-workers can open the project and add the .dll just fine.
I'm using VS2010, as is my co-worker.
I also tried rolling back the project to the last changeset in our source control, same error.
Version=3.5.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 "myDLL" or retarget your application to a
framework
I think you have two options to deal with this error,
1) You could have a try reconstruct you 'myDLL' using .net Framework 2.0;
2) upgrade your .net Framework 2.0 to .net Framework 3.5(install .net Framework 3.5) below,
abbyful
0 Points
3 Posts
Cannot add .dll, warning about framework versions
Jan 24, 2013 08:14 PM|LINK
I'm trying to add a .dll. This .dll was part of the project already, but today it started not working. I've tried re-adding it, and even re-adding different versions of it clear back from 2009, I keep getting the same error.
Here is the error:
The primary reference "myDLL" could not be resolved because it has an indirect dependency on the framework assembly "System.Core, Version=3.5.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 "myDLL" or retarget your application to a framework version which contains "System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089".
The project is in .NET 2.0, upgrading it to 3.5 or 4.0 is not an option.
The current version of the myDLL, which is the one that is also GAC'd, is compiled as 3.5, but (a) it has worked up until today and (b) even the older 2.0 versions I've pulled in still give this error.
One of my co-workers can open the project and add the .dll just fine.
I'm using VS2010, as is my co-worker.
I also tried rolling back the project to the last changeset in our source control, same error.
santosh.jagd...
Star
7625 Points
1454 Posts
Re: Cannot add .dll, warning about framework versions
Jan 28, 2013 05:42 AM|LINK
downgrade framework is supported but not upgraded.
e.g. If you are using 2.0 framework then DLL in later version will not be supported. But if you use older version (before 2.0) then it will support.
Now, you can build your DLL in 2.0 or previous framework and then you will be able to add reference.
MCP
Angie xu - M...
All-Star
18045 Points
1550 Posts
Microsoft
Re: Cannot add .dll, warning about framework versions
Jan 31, 2013 07:34 AM|LINK
Hi abbyful
I think you have two options to deal with this error,
1) You could have a try reconstruct you 'myDLL' using .net Framework 2.0;
2) upgrade your .net Framework 2.0 to .net Framework 3.5(install .net Framework 3.5) below,
http://msdn.microsoft.com/en-us/library/5a4x27ek(v=vs.90).aspx
hope it helps you,
Kind regards
Feedback to us
Develop and promote your apps in Windows Store