Generate a Visual Studio Solution for Windows
Learn how to create a Visual Studio solution for Windows from Unity.
Read time 1 minuteLast updated 13 days ago
Follow these instructions to create a Visual Studio solution for Windows from Unity.
The Create Visual Studio Solution Build Setting makes Unity generate a Visual Studio solution instead of building a Player.
Prerequisites
- You must use the Windows build target.
- If you use the IL2CPP scripting back-end, you must build on a Windows machine.
Generate the solution
To create a Visual Studio Solution:
- Go to File > Build Profiles.
- From the list of platforms in the Platforms panel, select Windows or create a build profile for the Windows platform.
- In the Platform Settings (Windows) section, enable Create Visual Studio Solution.
- Select Build to generate the solution.
By default, Unity stores the Visual Studio solution file you generate in the same directory as your built project.
For information about the projects included in your generated solution and the available build configurations, refer to Visual Studio solution contents and configurations for Windows.