• I am inexperienced with c#, I had to use the following in place of your example to get mine to work after editing script:

    MessageBox.Show(Dts.Variables["User::MyVariable"].Value.ToString());