cannot add a reference to the project

Hi
I use Visual Studio Professional 2017, version 15.2 (26430.12) on Windows 10. I try to add reference to System.Windows.Forms.dll and WindowsFormsIntegration.dll  but receive the massage as in attached picture.
What is wrong and how can I fix this ?
Capture.PNG
LVL 1
mastiSoftAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Ayoub RouziCeo & CoFounderCommented:
This thread will help you to resolve the issue:

https://developercommunity.visualstudio.com/content/problem/28126/unable-to-add-reference-in-visual-studio-2017-refe.html

Just to sum it up, the thread says that I need to add a certain .dll file on the cache for me to add References. Not sure why this issue occur but I hope it helps anyone who encounters the same issue.
0
mastiSoftAuthor Commented:
Hi I did as was suggested and as you can see from screen shot it was don correctly, but I still cannot add a reference to System.Windows.Forms
Capture1.PNG
0
sarabandeCommented:
as stated in the error message you can't add references to dll's exported from a .NET assembly.

and the reference to the assembly which contains System.Windows.Forms.dll and WindowsFormsIntegration.dll already should be done automatically when you created the windows forms project.

Sara
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
mastiSoftAuthor Commented:
thank you
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows 10

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.