Refactoring ProjectFile to make it C# friendly