Perhaps this is common knowledge, but it took me quite some time to figure this out so even if this just helps a single person, I will consider this post a success.
First, I will list the specifications on my machine and then I will go into listing the symptoms I noticed in case the title of the post doesn’t capture the right audience.
I am using the Community edition of Studio that just got upgraded to 2021.10.3. I have this edition on my work laptop and my personal computer.
Symptom: I was looking for the Microsoft.Activities.Extensions package on my personal computer because I needed to utilize some of the dictionary functions that are associated with it, but I was unable to locate it in the manage packages area (however, it would show up on my work laptop). The Windows version and the .NET framework were the same for both machines.
I tried to manually get the package into the manage package area a couple different ways:
- Opened the .json file via notepad and added it (this technically worked, but, it was in red under the dependencies area and would not allow me to repair it, so this was essentially useless).
- Downloaded the package via the nuget.org site and attempted to insert it into a personal directory (this did not seem to work- perhaps I was doing it wrong)
Eventually, it led me to the following error:
NU1202: Package Microsoft.Activities.Extensions 126.96.36.199 is not compatible with net5.0-windows7.0(.NETCoreApp,Version=5.0)/win10-x64. Package Microsoft.Activities.Extensions 188.8.131.52 supports:
-net40 (.NETFramework, Version=4.0)
-net401 (.NETFramework, Version=4.0.1)
-net45 (.NETFramework, Version=4.5)
Note that, although I was searching for this particular package, there were other packages that were experiencing the same symptom (unavailable in Manage Packages area on one machine, but available in the other).
What I came to realize is, when you open a new project there are 3 new options that you need to pay attention to in the ‘compatibility’ drop down section: Windows - Legacy, Windows, and Cross-Platform
Apparently, if you choose the ‘Windows’ option, this is not compatible with some of the packages (hence the reason they do not appear in the manage packages area), so you must at least choose ‘Windows - Legacy’ (Note: I have not used the Cross-Platform option to know much about it at this time).
TL:DR; If you’re unable to find one of the packages in the ‘Manage Packages’ area, check to make sure you have selected the correct compatibility drop down when you started the project if you’re using the latest version of Studio (2021.10.3)