title: Debug aspx / cs scripts with no VS2017 project
body: <p>Someone's handed me a crashing aspx / .cs script to debug.</p>
  
  <p>Any idea how to set up a VS2017 project to debug it?</p>
  
  <p>I've tried using the wizard, Visual C#, asp.net </p>
  
  <p>This works OK for one set of pages on the site, Default.aspx and Default.aspc.cs</p>
  
  <p>When I add the page I want to debug I get loads of compilation errors in the cs file, referring to objects in the aspx</p>
  
  <pre><code>The name 'Chart1' does not exist in the current context
  </code></pre>
  
  <p>and one reference I can't see how to sort out</p>
  
  <pre><code>Error   CS0012  The type 'Package' is defined in an assembly that is not referenced. You must add a reference to assembly 'WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
  </code></pre>
  
  <p>Am I going about this the right way?</p>