title: Missing partial modifier on declaration of type [class name]; another partial declaration of this type exists
body: <p>Note: I found some similar questions (<a href="https://stackoverflow.com/questions/15754364/missing-partial-modifier-on-declaration-of-type-x-cause-by-auto-generated-co">Link 1</a> and <a href="https://stackoverflow.com/questions/12866436/missing-partial-modifier-on-declaration-another-partial-declaration-of-this-ty">Link 2</a>), but they didn't helped me.</p>
  
  <p>I'm trying to create a partial class, but I getting the following error on the "main class":</p>
  
  <pre><code>Missing partial modifier on declaration of type SomeClass; another partial declaration of this type exists
  </code></pre>
  
  <p>Those are the files that cotains the classes and the problem is that the error is pointing to the "main class" not the partial class. The reason for that I'm creating this partial class is that the file SomeClass.cs is Checked Out with someone else as we (the people developing with me) are using Team Foundation Server for source control.</p>
  
  <p>File: SomeClass.cs</p>
  
  <pre><code>namespace MyNamespace
  {
      public class SomeClass
      {
          // Some methods...
      }
  }
  </code></pre>
  
  <p>File: SomeClass2.cs</p>
  
  <pre><code>namespace MyNamespace
  {
      public partial class SomeClass
      {
          // Some methods...
      }
  }
  </code></pre>