Search Unity

All projects are visible in the solution when switching to UWP

Discussion in 'Windows' started by demonixis, Apr 22, 2020.

  1. demonixis

    demonixis

    Joined:
    Aug 20, 2013
    Posts:
    185
    Hello,

    Is it a normal behaviour to have all projects visible in the solution when switching to UWP? It's not the case for Unity Standalone or Android. Do you know how to disable this behaviour? I use many packages so Visual Studio is very slow.
     
  2. timke

    timke

    Joined:
    Nov 30, 2017
    Posts:
    408
    Hey,

    The option to create .csproj files for Packages is controlled by the "Generate all .csproj files" located under Edit -> Preferences -> External Tools.

    Interestingly enough, it appears this option is off by default for Windows Standalone but is switched on when switching to UWP. Unchecking the box after switching to UWP should stop this behavior, however I did a quick test and in my case it didn't change; the VS solution still contained .csproj for Packages.

    There's another forum thread that goes into more detail on this: https://forum.unity.com/threads/cou...ackage-project-into-the-solution-file.678565/. Apparently there's a bug were this option doesn't actually turn .csproj generation on: https://issuetracker.unity3d.com/is...sproj-files-option-is-selected-in-preferences which could be related to the problem I'm seeing.

    If switching the option off doesn't solve the problem, please file another bug. Also, I don't know if it's expected for UWP to have different behavior or not, so if you file a bug please include this detail.
     
  3. demonixis

    demonixis

    Joined:
    Aug 20, 2013
    Posts:
    185
    OK great! Thanks for this long reply