Visual Studio solution contents and configurations for Windows
Unity debugging guide for Windows
Generate a Visual Studio Solution for Windows
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 IL2CPPA Unity-developed scripting back-end which you can use as an alternative to Mono when building projects for some platforms. More info
See in Glossary scripting back-end, you must build on a Windows machine.
Generate the solution
Warning: Make sure you save and back up any changes you make in Visual Studio before you rebuild your Unity project. Unity overwrites unsaved changes during the build process, except for the AppxManifest.xml file.
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.
Additional resources
Visual Studio solution contents and configurations for Windows
Unity debugging guide for Windows