Note: I found some similar questions (Link 1 and Link 2), but they didn't helped me.
I'm trying to create a partial class, but I getting the following error on the "main class":
Missing partial modifier on declaration of type SomeClass; another partial declaration of this type exists
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.
File: SomeClass.cs
namespace MyNamespace
{
public class SomeClass
{
// Some methods...
}
}
File: SomeClass2.cs
namespace MyNamespace
{
public partial class SomeClass
{
// Some methods...
}
}