title: Error: must declare a body because it is not marked abstract or extern
body: <p>Having a bit of an issue getting this error to clear when compiling with <code>csc.exe</code> on Win10. I am very new to C#. Doing a bit of self learning before I start attending classes in Jan.</p>
  <p>Following a &quot;TeamTreehouse&quot; tutorial on doing this. They are using <code>mono</code> in their workspaces. I am preferring to use <code>vscode</code> on my machine to get familiar with using C# outside of mono.</p>
  <p>From what I have read on CS0501 with my issue is that it is a compiler issue that shouldn't be an issue but using <code>csc.exe</code> is causing an issue. Adding <code>abstract</code> gives a whole new set of issues.</p>
  <p>Command using to compiler from terminal is <code>csc *.cs</code></p>
  <p>I am not sure where to look next for a solution. I haven't been able to find a working one using what is called <code>Auto-Implemented Properties</code>.</p>
  <p><strong>The error is</strong></p>
  <blockquote>
  <p>Invader.cs(6,39): error CS0501: 'TreehouseDefense.Invader.Location.get' must declare a body because it is not marked abstract or extern</p>
  <p>Invader.cs(6,52): error CS0501: 'TreehouseDefense.Invader.Location.set' must declare a body because it is not marked abstract or extern</p>
  </blockquote>
  <p><strong>The code</strong>
  Invader.cs</p>
  <pre><code>namespace TreehouseDefense {
  
      class Invader {
  
          public MapLocation Location { get; private set; }
  
      }
  }
  </code></pre>
  <p><strong>The Project</strong>
  Object_Project.csproj</p>
  <pre><code>&lt;Project Sdk=&quot;Microsoft.NET.Sdk&quot;&gt;
  
    &lt;PropertyGroup&gt;
      &lt;OutputType&gt;Exe&lt;/OutputType&gt;
      &lt;TargetFramework&gt;netcoreapp2.2&lt;/TargetFramework&gt;
    &lt;/PropertyGroup&gt;
  
  &lt;/Project&gt;
  </code></pre>