Skip to content

Request clarification for 'Generate csproj files' in documentation for using vsc with unity #4946

@Tarinaky

Description

@Tarinaky

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.62.0
  • OS Version: Windows 10

Steps to Reproduce:

  1. Go to https://code.visualstudio.com/docs/other/unity
  2. Open External Tools Preferences in Unity Editor on Windows
  3. Look at list of toggle boxes Generate .csproj files for:

The instructions on this page do not state what settings should be selected for these toggle boxes and if these toggle boxes are not correctly set it can result in Unity namespaces not being correctly imported.

Further Steps

  1. Tick all Boxes
  2. Create script using UnityEngine.UI;
  3. using directive will indicate UI cannot be found in UnityEngine namespace
  4. Remove ticks from all boxes except 'Embedded packages' and 'Local packages', regenerate project files and re-open script created in step 2
  5. Error on using directive will no longer appear

Please update documentation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    doc-enhancementsuggested addition or improvement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions