Error: The type or namespace name 'fileInfoNew' could not be found
<p>The following code gives me the error</p>

<blockquote>
  <p>Error: The type or namespace name 'fileInfoNew' could not be found (are you missing a using directive or an assembly reference?)</p>
</blockquote>

<p>I have tried to add resource EntityFramework but that comes up with the error:</p>

<blockquote>
  <p>The referenced component 'EntityFramework' could not be found.</p>
</blockquote>

<h1>Failing Code</h1>

<pre><code>using System;
using System.Data;
using Microsoft.SqlServer.Dts.Runtime;
using System.Windows.Forms;
using System.IO;

namespace ST_18ff7a6acad54a089ed1d4a93700a713.csproj
{
    [System.AddIn.AddIn("ScriptMain", Version = "1.0", Publisher = "", Description = "")]
    public partial class ScriptMain : Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTARTScriptObjectModelBase
    {

    enum ScriptResults 
    { 
        Success = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Success, 
        Failure = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Failure 
    }; 

        public void Main()
        {
            string[] sourceFiles = Directory.GetFiles(Dts.Variables["Y:\\Monoday\\Rachael\\PromasterFiles\\Partners YTD Promaster Monthly Transaction list.xlsx"].Value.ToString()); 
            DateTime highestDate = new DateTime();             
            int lastDate = 01/07/11 ;
            int fileInfo;
            int fileInfoNew;                                                                                                                                                    
            Boolean runPackage = false;

            foreach (string currentFile in sourceFiles)             
            {                                  
                fileInfo = new fileInfoNew(currentFile);                                                  

                if (fileInfo &gt; lastDate)                 
                {                                        
                    lastDate = fileInfo; 
                    runPackage = true;                 
                }             

            }   

            Dts.TaskResult = (int)ScriptResults.Success;
        }
    }
}`
</code></pre>
