Version: Unity 6.6 (6000.6)
Language : English
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:

  1. Go to File > Build Profiles.
  2. From the list of platforms in the Platforms panel, select Windows or create a build profile for the Windows platform.
  3. In the Platform Settings (Windows) section, enable Create Visual Studio Solution.
  4. 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
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961