Skip to content

A post-processor to customize Visual Studio project files of Unity project. It adds build configs for different platforms.

License

Notifications You must be signed in to change notification settings

phenixxy/unity-vs-postprocessor

Repository files navigation

Unity VS Postprocessor

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.

About

  • Based on Unity 2019.4 LTS.
  • Customize VS solution file and project files after they are generated by Visual Studio Tools for Unity.

Usage

  1. Add VSPostprocessor.cs to any Editor folder.
  2. Trigger generation of VS files in Unity.
  3. Open VS solution file.
  4. You should see different configs in config dropdown menu on VS toolbar.
  5. Select a config and build to check compile result. Or use batch build to compile multiple configs.

Notes

  • You can add more platforms in _Platforms array.
  • Custom and Clean 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.

Example

Check generated unity-vs-postprocessor.sln and .csproj files.

About

A post-processor to customize Visual Studio project files of Unity project. It adds build configs for different platforms.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages