Problem with Microsoft.SqlServer.Smo

I have a .NET 2.0 project and I get the following error when I try to compile some projects that use SMO:

The primary link "Microsoft.SqlServer.Smo, Version = 9.0.242.0, Culture = neutral, PublicKeyToken = 89845dcd8080cc91, processorArchitecture = MSIL" cannot be resolved because it has an indirect dependency on the system build "System.Core, Version = 3.5.0.0 , Culture = neutral, PublicKeyToken = b77a5c561934e089 ", which cannot be resolved in the target environment. ".NETFramework, Version = v2.0."

To fix this problem, delete the link "Microsoft.SqlServer.Smo, Version = 9.0.242.0, Culture = neutral, PublicKeyToken = 89845dcd8080cc91, processorArchitecture = MSIL" or migrate the application to the version of the framework containing "System. Core, Version = 3.5.0.0 , Culture = neutral, PublicKeyToken = b77a5c561934e089 ".

Can someone help. Because of this, I do not want to port projects to .NET 3.5.

thank

+3
source share
1 answer

As you can see from the exceptions, .NET 3.5 is required for the current link assembly. You should abandon Microsoft.SqlServer.Smo that support .NET 2.0.

0
source

All Articles