How can we help you today? How can we help you today?

Unable to create new project

I'm trying to get a .net project up and running using the compare SDKs, but when I create a new project, and add references to the v11 sdk dlls, I get an error:

Error 2 The name 'Project' does not exist in the current context

on this line:

//load up the project
Project projectLoadedFromDisk = Project.LoadFromDisk(projectName);

which is straight out of the sdk examples. I've added references for all of the v11 dlls. My using block looks like this:

using RedGate.SQLCompare.Engine;
using RedGate.SQLDataCompare.Engine;
using RedGate.Shared.SQL.ExecutionBlock;

This has to be so simple, but I can't figure out why, can someone help?
sqlpadawan
0

Comments

3 comments

  • Andrew Fraser
    Unfortunately you have found a mistake in our documentation. The assembly you need to use the Project class is RedGate.SQLCompare.Engine.UIProject.dll, adding a reference to this assembly should solve your issue. Please note that the namespace you are using is correct so you won't need to change your source code.
    Andrew Fraser
    0
  • sqlpadawan
    Thanks, that fixed our problem.
    sqlpadawan
    0
  • Andrew Fraser
    Awesome, glad it's sorted.
    Andrew Fraser
    0

Add comment

Please sign in to leave a comment.