title: Exception Dts is not declared
body: <p>I'm getting this (Dts is not declared) exception when I try to build my SSIS script task. Any idea how to resolve it?</p>
  
  <p>here is the part of my code</p>
  
  <pre><code>Imports System
  Imports System.Data
  Imports System.Math
  Imports Microsoft.SqlServer.Dts.Runtime
  
  
      Public Class ScriptMain
          Public Sub Main()
              Try
                  Dim cm As ConnectionManager = Dts.Connections.Add("FTP")
                  cm.Properties("ServerName").SetValue(cm, Dts.Variables("SFTPServerName").Value.ToString)
                  cm.Properties("ServerUserName").SetValue(cm, Dts.Variables("SFTPLogin").Value.ToString)
                  cm.Properties("ServerPassword").SetValue(cm, Dts.Variables("SFTPPassword").Value.ToString)
                  cm.Properties("ServerPort").SetValue(cm, Dts.Variables("SFTPPortNumber").Value.ToString)
  </code></pre>