Customize project files created by VSTU

Unity provides callbacks during project file generation. Implement OnGeneratedSlnSolution and OnGeneratedCSProject methods using an AssetPostprocessor to modify the project or solution file whenever it's regenerated.

Demonstrates

How to customize the Visual Studio project files generated by Visual Studio Tools for Unity.

Example

using System;
using UnityEditor;
using UnityEngine;

public class ProjectFilePostprocessor : AssetPostprocessor
{
  public static string OnGeneratedSlnSolution(string path, string content)
  {
    // TODO: process solution content
    return content;
  }

  public static string OnGeneratedCSProject(string path, string content)
  {
    // TODO: process project content
    return content;
  }
}