NullReferenceException with ScriptSynchronizationActions
paulh
Posts: 35 Bronze 2
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
I get an exception which implies that scriptActions.SynchronizationActions is null.
Any ideas?
I'm writing out the messages from the Work object which works fine, but when I do
// 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?