Use Microsoft Solver Foundation in C #

I am trying to use Microsoft Solver Foundation in my C # application in VS2010 Ultimate. I installed MSF (64-bit), and as I understand it, I should be able to use services after the declaration:

using Microsoft.SolverFoundation;

However, I get the error "The type or namespace name" SolverFoundation "does not exist in the Microsoft namespace.

I see that there is a Microsoft.Solver.Foundation.dll file located in the C: \ Program Files (x86) \ Reference Assemblies \ Microsoft \ Framework.NETFramework \ v4.0 folder

Initially, I thought that the 64-bit version might be a problem, so I uninstalled and switched to the 32-bit version. But there is no success.

How can I integrate MSF into my C # application?

+5
source share
4 answers

I already tried adding links before, but this did not work. Now I noticed something in the warnings (which I probably hadn't seen before):

"The referenced assembly "Microsoft.Solver.Foundation, Version=3.0.1.10599, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" could not be resolved because it has a dependency on "System.Web, Version=4.0.0.0, Culture=neutral which is not in the currently targeted framework ".NETFramework,Version=v4.0,Profile=Client". Please remove references to assemblies not in the targeted framework or consider retargeting your project."

I fixed this by installing Application Properties -> Application -> Target Framework from ".Net Framework 4 Client Profile" to ".Net Framework 4".

+6
source

I am trying to use Microsoft Solver Foundation in my C # application in VS2010 Ultimate. I installed MSF (64-bit), and as I understand it, I should be able to use services after the declaration:

using Microsoft.SolverFoundation;

How can I integrate MSF into my C # application?

, , , , , . .

+6

"Microsoft Solver Foundation", Add Reference...?

, , , Project -> Properties.. -> Compile -> Advanced Compile Options... , .NET 4 Framework Client Profile ( ). , .NET 4 Framework.

... ?

+1

DLL, .

0

All Articles