| Author |
Message |
paulh
Joined: 08 Oct 2005 Posts: 31
|
Posted: Fri Apr 03, 2009 4:07 pm Post subject: NullReferenceException with ScriptSynchronizationActions |
|
|
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: |
// 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? |
|
| Back to top |
|
 |
|
|
All times are GMT + 1 Hour
|
| Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group