NullReferenceException with ScriptSynchronizationActions

Automate and integrate using the SQL comparison API

NullReferenceException with ScriptSynchronizationActions

Postby paulh » Fri Apr 03, 2009 3:07 pm

My MSBuild task is throwing a NullReferenceException and I can't figure out why...

I'm writing out the messages from the Work object which works fine, but when I do

Code: Select all
            // Retrieve the list of actions to perform to synchronize the database against the scripts folder
            ScriptSynchronizationActions scriptActions = work.ScriptSynchronizationActions;

            // Display the files that will be modified during the synchronization
            this.Log.LogMessage(MessageImportance.High, "Script files that will be modified:");
            foreach (ScriptSynchronizationAction action in scriptActions.SynchronizationActions.Values)

I get an exception which implies that scriptActions.SynchronizationActions is null.

Any ideas?
Posts: 33
Joined: Sat Oct 08, 2005 4:28 pm

Return to SQL Comparison SDK Previous Versions

Who is online

Users browsing this forum: No registered users and 0 guests