Visual Studio solution contents and configurations for Windows
Understand the contents and build configuration options of a generated Visual Studio solution for Windows.
Read time 2 minutesLast updated 12 days ago
Generate a Visual Studio solution to change your build process. For example, you can modify your application’s manifest, add C++ code, modify embedded resources, or launch your application with the debugger attached.
Depending on which scripting backend your Unity project uses, the generated solution includes a different number of projects: three for Mono and four for IL2CPP.
Solution contents
When you generate a Visual Studio Solution, Unity creates the following projects:
Project | Description |
|---|---|
| projectName (represents your project name) | This is your main project. Visual Studio builds this project into the final application executable. You are most likely to make changes here. |
| UnityData (stored inside the projectName project) | This project contains all the Unity-specific files you need to build your project, such as assets. |
| UnityPlayerStub | This is a stub library for |
| Il2CppOutputProject (IL2CPP scripting backend only) | This project contains:
|
Build configuration options in Visual Studio
Visual Studio provides a variety of build configuration options. All optimization and debug references in this section refer to the Visual Studio solution only. To select your options, click on Release and choose from the drop-down menu.
Configuration | Use | Description |
|---|---|---|
| Debug | Use the Debug configuration when debugging C++ code. |
|
| Release | Use the Release configuration to profile your game. |
|
| Master | Use the Master configuration for game submission and final testing. |
|
| MasterWithLTCG (IL2CPP only) | Use for game submission and final testing with IL2CPP. |
|