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

Resolved 2019.3.12f1 visual studio 2019 problem

Discussion in 'Editor & General Support' started by sophiepeithos, Apr 30, 2020.

  1. sophiepeithos

    sophiepeithos

    Joined:
    Sep 10, 2014
    Posts:
    59
    preferences->external tools->generate .csproj files for with all checkbox checked but in visual studio 2019 can't use jump to definition in many code
     
    DungDajHjep and foonix like this.
  2. Ichimitsu

    Ichimitsu

    Joined:
    Oct 9, 2014
    Posts:
    24
    I affirm. In 2019.3.12 Visual Studio does not see assembly definition. There is no this problem in 2019.3.11
     
  3. RistoPaasivirta

    RistoPaasivirta

    Joined:
    Aug 25, 2017
    Posts:
    17
    Just updated my project to 2019.3.12f1 from 2019.3.11f1, many namespaces can no longer be found (SimpleJSON, MapBox, etc)
     
    moosesnWoop likes this.
  4. floky

    floky

    Joined:
    Oct 6, 2010
    Posts:
    273
    Same here guys! Someone did a boo-boo on this update.
     
  5. floky

    floky

    Joined:
    Oct 6, 2010
    Posts:
    273
    Apparently it's from the assembly definition files. Visual Studio is not getting correctly configured by Unity when having asmdef files in the project which generates multiple C# projects...for some reason...also noticed that the project properties window inside VS doesn't open as a side-effect of all this.
    But a project that generates only one C# project works and compiles correctly in VS.
     
    Last edited: Apr 30, 2020
  6. eegemen42

    eegemen42

    Joined:
    Nov 18, 2019
    Posts:
    2
    as a quick workaround, VS Code works fine.
     
  7. floky

    floky

    Joined:
    Oct 6, 2010
    Posts:
    273
    Thanks!
    Yeah well for some teams changing the IDE for the entire team is not a viable solution at the moment.
    Unity made a big mistake with this release. Someone got drunk or something because it's a pretty obvious and major bug.
     
    eegemen42 likes this.
  8. argh6543

    argh6543

    Joined:
    Apr 14, 2017
    Posts:
    48
    Same here. Staying with 11f1 till this is fixed is likely a better workaround than switching editors for most people.
     
  9. eegemen42

    eegemen42

    Joined:
    Nov 18, 2019
    Posts:
    2
    Well, I found the underlying reason. Unity generates main Assembly-CSharp.csproj file incorrectly.

    Here is the temporary fix for those interested:
    • From VS Tools/Options/Tools for Unity/Miscellaneous set "Access to project properties" to True.
    • Restart VS.
    • Remove the allegedly missing reference(s) from the Solution Explorer/References treeview and add them again. You can find the reference DLLs inside yourprojectfolder\Library\ScriptAssemblies\xxx.dll
    But still it's a temporary fix. Adding new scripts to your project triggers regenerating csproj files and broke it again. It's a very nasty bug.
     
    Last edited: Apr 30, 2020
    kc885 and floky like this.
  10. floky

    floky

    Joined:
    Oct 6, 2010
    Posts:
    273
    Yep, found that also.
    Reported bug to Unity. Pretty major bug to leave out and about. :(
     
  11. Edeff

    Edeff

    Joined:
    Dec 9, 2019
    Posts:
    11
    Glad I'm not the only one, although I'm not glad I wasted an hour on this

    I was updated to the vscode 1.2 package along with the update, but this package doesn't seem to be the culprit, as 2019.3.11 with vscode 1.2 seems to work fine
     
    charlesb_rm likes this.
  12. mplanck81

    mplanck81

    Joined:
    Apr 30, 2020
    Posts:
    1
    This worked for me.

    But I confirm there is a big problem, my scripts in Assembly-CSharp-Editor project don't see namespaces from the Assembly-CSharp project in visual studio, I get many intellisense errors. I just tested in Unity 2019.3.11 everything work fine.
     
  13. beholdgames

    beholdgames

    Joined:
    Jul 10, 2012
    Posts:
    3
    Looks like this has already been noted, but I was able to revert back to 3.11f without any issues. 3.12f is definitely missing a connection between the assembly references of quite a few namespaces (Including Pun2 which is where I ran into issues). My game still operated without issue, but my code looked like I had a million errors.
     
  14. CDF

    CDF

    Joined:
    Sep 14, 2013
    Posts:
    1,283
    Same issue here. Going back to 2019.3.11
    This is really bad.
     
  15. Abnormalia_

    Abnormalia_

    Joined:
    Jul 23, 2013
    Posts:
    124
    Were their QA on vacation ? How can they missed that ?
     
    CDF likes this.
  16. Personuo

    Personuo

    Joined:
    Mar 19, 2014
    Posts:
    122
    Same with me!
     
  17. headlessstudio

    headlessstudio

    Joined:
    Feb 25, 2016
    Posts:
    83
    Lost a whole morning without writing a line of code because of this.... This is terrible.... Awful work from Unity.
     
  18. floky

    floky

    Joined:
    Oct 6, 2010
    Posts:
    273
    S*** happens.
    There is the official guideline to always backup your projects before upgrading to a new Unity version. This is advisable for any engine / tech out there. There will always be a factor of human error.
    I personally restored back the project to using 2019.3.11f1.
     
  19. headlessstudio

    headlessstudio

    Joined:
    Feb 25, 2016
    Posts:
    83
    Sure, I can relate to that, we have VCS on all our projects but lets not forget we're not talking about alpha or beta release. This is a feature release.
     
    floky likes this.
  20. Shturmovik

    Shturmovik

    Joined:
    Nov 5, 2014
    Posts:
    29
    Anyone got a link to a formal bug report on this?
     
    charlesb_rm likes this.
  21. desertGhost_

    desertGhost_

    Joined:
    Apr 12, 2018
    Posts:
    259
    I have the same issue with Visual Studio 2019, but I found that everything works fine in Visual Studio Code... Anyone got a link to a bug report?
     
    charlesb_rm likes this.
  22. castor76

    castor76

    Joined:
    Dec 5, 2011
    Posts:
    2,511
    Damn... just wasted whole day trying to figure this out.. Ha..................................................................................

    Anyone with bug report? Link? Anyone from Unity?
     
    charlesb_rm likes this.
  23. Seith

    Seith

    Joined:
    Nov 3, 2012
    Posts:
    755
    We've also stumbled on that issue. Not sure how this could slip through the cracks.
     
  24. charlesb_rm

    charlesb_rm

    Unity Technologies

    Joined:
    Jan 18, 2017
    Posts:
    485
    Hi all, thanks for reporting this issue. We have not been able to reproduce the problem yet. Can you open a bug and let us know the issue number so we can see the configuration and try to repro and fix it?
     
  25. charlesb_rm

    charlesb_rm

    Unity Technologies

    Joined:
    Jan 18, 2017
    Posts:
    485
    irrelevant info I posted earlier - please ignore:

    A quick investigation lead me to find that we bumped the version of the package com.unity.ide.vscode from 1.1.4 to 1.2.0 in version 2019.3.12f1. Is your project currently using the package Visual Studio Code Editor at version 1.1.4 or 1.2.0?
     
    Last edited: May 2, 2020
  26. castor76

    castor76

    Joined:
    Dec 5, 2011
    Posts:
    2,511
    I have actually tried to down verson to 1.1.4 but that did not helped..

    I have even uninstalled VS 2017 and installed VS 2019 , but also not helped.
     
    Last edited: May 3, 2020
    charlesb_rm likes this.
  27. miniwolf_unity

    miniwolf_unity

    Unity Technologies

    Joined:
    Apr 10, 2018
    Posts:
    135
    To clarify the issues here, because people are talking about VSCode packages and the Visual Studio support.
    1. The visual studio issue has been verified, a PR is landing and will be released asap.
    2. There is no known issue with VSCode on Unity 2019.3, when using the 1.2.0 version of the package.
    Note there is no package for Visual Studio for Unity 2019.3, the built-in support was only moved to a package in Unity 2020.1+.

    The regression is caused by an invalid ReferenceOutputAssembly key set to false for ProjectRefence in the csproj files. By removing this field it will resolve the issue correctly. Unfortunately any asset changes will result in this getting overwritten again.
     
    Whatever560, foonix, sailro and 4 others like this.
  28. charlesb_rm

    charlesb_rm

    Unity Technologies

    Joined:
    Jan 18, 2017
    Posts:
    485
    foonix likes this.
  29. PeteSmalls

    PeteSmalls

    Joined:
    Apr 29, 2020
    Posts:
    11
    [QUOTE="The regression is caused by an invalid ReferenceOutputAssembly key set to false for ProjectRefence in the csproj files. By removing this field it will resolve the issue correctly. Unfortunately any asset changes will result in this getting overwritten again.[/QUOTE]

    Where can the relevant csproj files be found so I can hack that in?
     
  30. Ferazel

    Ferazel

    Joined:
    Apr 18, 2010
    Posts:
    513
  31. DungDajHjep

    DungDajHjep

    Joined:
    Mar 25, 2015
    Posts:
    198
    my god, same problem and waste some hour, we should downgraded to 2019.3.11.
     
    Last edited: May 5, 2020
  32. Nightmare31

    Nightmare31

    Joined:
    Nov 10, 2018
    Posts:
    4
    Same probleme for me. i loose 2 days before finding this thread. i will try to downgrade unity editor to 2019.3.11f.
     
  33. Whatever560

    Whatever560

    Joined:
    Jan 5, 2016
    Posts:
    414
    I'm also having library linking issues with unity 2019.3.12. It only happens in Visual Studio, unity compiles properly.

    I'm downgrading to 2019.3.11
     
  34. tanoshimi

    tanoshimi

    Joined:
    May 21, 2013
    Posts:
    297
    Found this thread after discovering that my PUN2 VS project was broken after upgrading to 2019.3.12f1. (Should've learned by now never to upgrade mid-project. Sigh....)
     
  35. mechaniqe

    mechaniqe

    Joined:
    Jan 25, 2017
    Posts:
    18
    Same issue happened to me when I just moved to another device, so I kept installing and uninstalling stuff thinking that it is somehow related to setup. That's until I went back to the original device and saw that the same problem exists there too. Wasted more than half a day on this.

    It would be really beneficial if these issues were noted under Known Issues of the new version.
     
    charlesb_rm likes this.
  36. charlesb_rm

    charlesb_rm

    Unity Technologies

    Joined:
    Jan 18, 2017
    Posts:
    485
    A new TECH release containing the fix for this issue has just been published: 2019.3.13f1
     
  37. CDF

    CDF

    Joined:
    Sep 14, 2013
    Posts:
    1,283
    Nice, back in business
     
    charlesb_rm likes this.
  38. alevillalba

    alevillalba

    Joined:
    Jun 29, 2017
    Posts:
    7
    Thanks, I can attach the debugger again now.
     
    charlesb_rm likes this.
  39. floky

    floky

    Joined:
    Oct 6, 2010
    Posts:
    273
    Yep. Thanks!
    Installed, tested and everything seems to be working fine and then some.
     
    charlesb_rm likes this.
  40. Callabrator88

    Callabrator88

    Joined:
    Nov 11, 2013
    Posts:
    10
    Unfortunately 2019.3.13f1 does not fix this issue for me. 11f1 works fine. Is there something else I might be missing?
     
  41. MsRedNebula

    MsRedNebula

    Joined:
    May 14, 2019
    Posts:
    4
    I'm also having problems with this in 2019.3.14f1. I was getting namespace errors until I deleted the assembly definition file I was trying to set up for unit testing.
     
  42. parapoohda_unity

    parapoohda_unity

    Joined:
    Oct 10, 2018
    Posts:
    1
    I have problem that go to definition it go to meta data file in version 2019.3.15.
    I want to ask is this the same problem?
     
  43. miniwolf_unity

    miniwolf_unity

    Unity Technologies

    Joined:
    Apr 10, 2018
    Posts:
    135
    For those of you still experiencing problems, you can file a bug report to Unity with some reproducible steps. Then we will take a look at any remaining cases.
     
  44. Whatever560

    Whatever560

    Joined:
    Jan 5, 2016
    Posts:
    414
    This issue reappeared for me in 2019.4.5f1

    upload_2020-7-30_18-9-58.png



    If I manually select the reference in the list and then look into the property tab, then references gets updated for the current project.

    Example :

    upload_2020-7-30_18-10-18.png

    Then I click on tab

    upload_2020-7-30_18-13-33.png

    and it resolves

    upload_2020-7-30_18-14-15.png

    Very strange behaviour.
     

    Attached Files:

    Last edited: Jul 30, 2020
  45. castor76

    castor76

    Joined:
    Dec 5, 2011
    Posts:
    2,511
    I am not sure if it is just me, but when I attach debugger to Unity and then start playing, it disconnects and I have to reattach it again. Anyone has the same problem? Debug mode is on to start with.
     
  46. miniwolf_unity

    miniwolf_unity

    Unity Technologies

    Joined:
    Apr 10, 2018
    Posts:
    135
    Please report this issue to Microsoft through the Visual Studio help menu.