title: "Attribute 'Dependency' is not valid on this declaration type." error
body: <p>Why I receive such message?</p>
  
  <p>Attribute 'Dependency' is not valid on this declaration type. It is only valid on 'assembly' declarations.</p>
  
  <pre><code>public partial class MainWindow : Window
  {
      private OverviewViewModel _vm;
  
      [Dependency]
      public OverviewViewModel VM
      {
          set
          {
              _vm = value;
              this.DataContext = _vm;
          }
      }
  </code></pre>