[MSBuild] Fix getting project references on .NET