Search code examples
visual-studio-2012solverms-solver-foundation

How to reference Microsoft.Solver.Foundation in vs12?


I'm trying to add Solver Foundation to a project I'm working on in Visual Studio 2012, but I can't find it in the list.

I opened one of the example projects, and the reference is Microsoft.Solver.Foundation however I tried searching Microsoft.S on all of the available lists, in my project, and it didn't come up.

How do I get Solver Foundation into my project?


Solution

  • I've just installed VS 2012 on my computer. I also have VS 2010 installed. I've re-installed Solver Foundation, but still no such project type in VS 2012 (unlike VS 2010). I would also like to know how to add this project type to the templates in VS 2012.

    However, this might help you: it is enough to add the reference in your project to the Microsoft.Solver.Foundation.dll. The location might be:

    C:\Program Files\Reference Assemblies\Microsoft\Framework\ .NETFramework\v4.0\Microsoft.Solver.Foundation.dll

    if your Framework version was 4.0 before installing VS 2012.