A post-processor to customize Visual Studio project files of Unity project. Different build configs are added to compile code for different platforms with correct defines and references. So compile errors can be easily checked by VS build.
- Based on Unity 2019.4 LTS.
- Customize VS solution file and project files after they are generated by Visual Studio Tools for Unity.
- Add VSPostprocessor.cs to any Editor folder.
- Trigger generation of VS files in Unity.
- Open VS solution file.
- You should see different configs in config dropdown menu on VS toolbar.
- Select a config and build to check compile result. Or use batch build to compile multiple configs.
- You can add more platforms in
_Platforms
array. Custom
andClean
config means with or without custom defines added in Scripting Define Symbols of Player Settings.- Compile errors can be auto detected by batch building VS solution in any CI system, such as Jenkins.
Check generated unity-vs-postprocessor.sln and .csproj files.