Refactored csproj script