[IntelliSense] Fix Broken C# Project Generation and Missing Solutions
Solution
Unity 2019.4.x - Unity 6.3.x
Published Sat, May 9
An inability to generate C# projects or solution files within Unity Editor has been observed. Instead of your project opening in your designated IDE, your script folder is opened directly. Attempts to resolve this by deleting Library and Temp files often fail to restore the connection between your script and the environment.
C# project and solution files are reconstructed by navigating to External Tools, configuring External Script Editor, and selecting Regenerate project files.
Resolution for C# project generation issues involves configuring the External Script Editor within Project Settings. The failure to synchronize with an IDE is typically caused by a corrupted internal project state or a mismatch in your External Tools configuration.
- Open the
Project Settingswindow by navigating toEdit>Project Settings. - Select the
External Toolstab from the left-hand sidebar. - Locate the
External Script Editordropdown and ensure your preferred IDE is selected. - Click the Regenerate project files button to trigger the project reconstruction.
Additional Tips:
- Update your editor package in the
Package Managerto ensure compatibility with Unity 6. - Verify that checkboxes for your package types are enabled under the Regenerate project files button.
- Manually deleting existing
.slnand.csprojfiles from the root folder before clicking Regenerate project files can resolve persistent cache issues.
Related Posts Haven't quite found a solution to your problem? We think these posts might help you.
Content inspired by a Unity discussion post.