Reputation: 257
I'm trying to use the code from this post: get com port number of an USB adapter
Then I got this message: why?
Upvotes: 7
Views: 16338
Reputation: 6490
You have to add a reference to System.Management
Manually through VS 2010.
Right Click on Project, Add References
Select the Assemblies Tab and Search for System.Management . Then Add Reference.
Upvotes: 35