This Visual Studio project is used to compile the .NET Compiler Platform ("Roslyn") in a form usable in the Unity game engine. This project ingests Roslyn as a series of Nuget packages, and is configured to produce a build with all dependencies required to use Roslyn in Unity, including the extra files necessary to import using the package manager. The Roslyn packages currently included in this package are:
- Microsoft.Net.Compilers
- Microsoft.CodeAnalysis
- Microsoft.CodeAnalysis.Features
A ready-to-use Unity package is available here. To build this project, do the following:
- Clone the project
- Load "Roslyn Library.sln" in Visual Studio
- Set the Solution Configuration to release
- Click build
- The output folder, "Roslyn Library\bin\Release\netstandard2.0" can be copied directly into Unity
Merge requests are welcome! All candidate merges must compile in Unity 2019.1 and Unity 2018.1 to be accepted. In particular, testing and compatibility work needs to be done on Unity's various target runtime platforms, I.E. Xbox, Linux, Etc.
This project is released under the same license as Roslyn, the Apache 2.0 License