I’ve noticed something interesting. Net dlls provided with Unity installation in for ex. C:\Program Files\Unity\Hub\Editor\2019.2.11f1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api don’t include XML files and thus all VERY useful descriptions are missing in Visual Studio. Because of that I used to google every single time I wasn’t sure how one of function works. For example just now I was checking if File.Move will safely move my file if destination file already exists. Unity shows only this:
It seems that this is very easy to fix simply copy over all .xml files from C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.1 (If u don’t have them simply install Microsoft .NET Framework Developer Pack - link to 4.7.1v) to Unity folder mentioned at the top.
I’m having the same issue on 2019.3.1f1. Unfortunately adding the xml files doesn’t work like it has in the past. It’s pretty sad this is still an issue. This problem dates back to 2018 at least.
I was definitely putting the xml files in the wrong place (I was putting them in 4.7.1 because that’s what the csproj file was referencing, but its actually using .net standard 2.0 like yours is). Thanks for the reply!
I can’t get my Linq extension methods to show their description in VS2022 no matter your solutions… they still show up in the metadata (F12) so they are surely there.
I tried running the >dotnet add package NETStandard.Library --version 2.1.0 command from my unity project as the working directory (J:\Unity Engine\Unity 2022\Dummy Projects\BoidExperiments).
But i got the following error:
'Could not find any project in 'J:\Unity Engine\Unity 2022\Dummy Projects\BoidExperiments'.
So i looked around and found this asp.net - Error "dotnet : Could not find any project in `C:\**." when running "dotnet add package Microsoft.AspNetCore.Authentication.MicrosoftAccount" - Stack Overflow thread on stackoverflow. Which confused me further.
So my question is, what should the working directory be, and what should the ‘project’ argument be to >dotnet add package NETStandard.Library --version 2.1.0 ?