Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice
  4. Dismiss Notice

2017.2.0f3 Editor Not Generating Correct VS SLN/CSProj

Discussion in 'Editor & General Support' started by f0ff886f, Oct 22, 2017.

  1. f0ff886f

    f0ff886f

    Joined:
    Nov 1, 2015
    Posts:
    201
    I've got a really annoying problem as of 2017.2.0f3 (well the entire thing seems to be worse than any release ever...) with creating new scripts.

    If I create a new script in the Unity Editor, it will not appear in the game project in VS. It shows up as "Miscellaneous Files":
    upload_2017-10-22_17-43-33.png

    Whereas all good scripts show up with the appropriate project:
    upload_2017-10-22_17-46-14.png

    I have to manually delete the csproj/sln file each time I'm trying to create a new script! This has never happened to me so far.
     

    Attached Files:

  2. ReSY

    ReSY

    Joined:
    May 5, 2013
    Posts:
    4
    I have the same problem but in Unity 2017.1.1f and Visual Studio 15.4.1 and Visual Studio Tools for Unity 3.4.0.2. It happens, when Visual Studio working and script created in Unity Editor. If I create script when VS not executed all fine. Deleting csproj/sln is solving the problem. It seems the solution files not synchronize properly when VS is executed.