简体   繁体   中英

Cannot find type System.Collections.Specialized.NameObjectCollectionBase in module System.dll

I've been away from C# Forms programming for 7+ years and boy, have things changed!

None of my old projects work, and when I can seem to get one slightly working my breakpoints do not want to work! Wow Microsoft, I love the hoops you want people to jump through.

Anyways, I started fresh making a C# UWP Form project from scratch and got stuck with a weird error I can not seem to find the answer to.

My project does not complain about anything until I press 'F5' to start debugging, then the error in Title pops up. No line number, just the error. 在此处输入图片说明

What the hell does Microsoft expect me to do?

The only thing I did was add 'System.Web' as a reference, which I could not locate in the 'Add Reference' section, so I manually navigated to it.

What I thought would be a few hours to get acclimated back to C# programming(Javasript/PHP for last 7 years) has now turned into days.

PLEASE HELP ME BEFORE I LOSE MY MIND.

Go through these steps:

  1. Right-click on your Project
  2. Click on Manage NuGet packages
  3. Type " System.Collections.Specialized " into the search box
  4. Download the package and install

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM