Reputation: 9
I generated a dll from a .net 7 project and added the dll to a .net 3.1 project, but I can't compile the project after adding the dll because the following error occurs
error CS1705: Assembly '[project]' with identity '[project], Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'System.Runtime, Version=7.0.0.0, Culture=neu tral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than referenced assembly 'System.Runtime' with identity 'System.Runtime, Version=4.2.2.0, Culture=neutral, Pub licKeyToken=b03f5f7f11d50a3a'
Compiling the .net 3.1 project with the dll (.net 7) is what I need. What do I have to do? Update system.runtime?
Upvotes: 0
Views: 603
Reputation: 11598
They are not compatible with each other.
Short answer: No.
Low cost: upgrade your old project.
Upvotes: 3