Comments
3 comments
-
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.
-
Thanks, that fixed our problem.
-
Awesome, glad it's sorted.
Add comment
Please sign in to leave a comment.
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?