title: Program written using .net 4.0 but I need this application to run on computers running .net 2.0
body: <p>This question should be quite clear from its title alone, but let me explain with a bit more detail. I just got finished writing my application in what, I believe to be, .Net 4.0 framework (see picture below). After realizing that I would need my application to be compatible with even the earliest versions of the .Net framework, I went back and changed the Target Framework in Visual Studio's Properties window. Doing so, unfortunately, left me with a painfully long list of warnings - and one critical error. I was curious if anyone had some solution for how I can get my Application (written using the .Net 4.0 framework) to run in an Environment running the .Net 2.0 framework.</p>
  
  <h3> Original compilation </h3>
  
  <p><img src="https://i.stack.imgur.com/igBqt.png" alt="Proof of being compiled in .Net 4.0 Framework"></p>
  
  <h3>List of errors:</h3>
  
  <p><img src="https://i.stack.imgur.com/4eLRp.png" alt=".Net 2.0 errors">
  Thank you,
  Evan</p>
  
  <h2>EDIT:</h2>
  
  <p>I understand that the second picture is not completely visible for most of us, so I will post the errors below:</p>
  
  <pre><code>Warning 9   The referenced component 'System.Xml.Linq' could not be found.  
  Warning 10  The referenced component 'System.Data.DataSetExtensions' could not be found.    
  Warning 8   The referenced component 'System.Core' could not be found.  
  Warning 11  The referenced component 'Microsoft.CSharp' could not be found.     
  Warning 4   The primary reference "System.Xml.Linq", which is a framework assembly, could not be resolved in the currently targeted framework. ".NETFramework,Version=v2.0". To resolve this problem, either remove the reference "System.Xml.Linq" or retarget your application to a framework version which contains "System.Xml.Linq".   Protection
  Warning 2   The primary reference "System.Xml.Linq" could not be resolved because it has an indirect dependency on the framework assembly "System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" which could not be resolved in the currently targeted framework. ".NETFramework,Version=v2.0". To resolve this problem, either remove the reference "System.Xml.Linq" or retarget your application to a framework version which contains "System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089".   Protection
  Warning 5   The primary reference "System.Data.DataSetExtensions", which is a framework assembly, could not be resolved in the currently targeted framework. ".NETFramework,Version=v2.0". To resolve this problem, either remove the reference "System.Data.DataSetExtensions" or retarget your application to a framework version which contains "System.Data.DataSetExtensions". Protection
  Warning 3   The primary reference "System.Data.DataSetExtensions" could not be resolved because it has an indirect dependency on the framework assembly "System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" which could not be resolved in the currently targeted framework. ".NETFramework,Version=v2.0". To resolve this problem, either remove the reference "System.Data.DataSetExtensions" or retarget your application to a framework version which contains "System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089".   Protection
  Warning 1   The primary reference "System.Core", which is a framework assembly, could not be resolved in the currently targeted framework. ".NETFramework,Version=v2.0". To resolve this problem, either remove the reference "System.Core" or retarget your application to a framework version which contains "System.Core".   Protection
  Warning 6   The primary reference "Microsoft.CSharp", which is a framework assembly, could not be resolved in the currently targeted framework. ".NETFramework,Version=v2.0". To resolve this problem, either remove the reference "Microsoft.CSharp" or retarget your application to a framework version which contains "Microsoft.CSharp".    Protection
  Error   7   Could not load file or assembly 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. Line 123, position 5.    C:\Users\FARINA_EVAN\Documents\Programming\C#\Run Time Crypter\Run Time Crypter\Properties\Resources.resx   123 5   Protection
  </code></pre>