'Forms' does not exist in the namespace system.windows

前端 未结 4 846
终归单人心
终归单人心 2020-12-01 03:37

I have just started working on c#, and was fiddling with some code sample that I got from some forum.

This code is using a namespace using system.windows.forms

4条回答
  •  北荒
    北荒 (楼主)
    2020-12-01 03:59

    You may encounter this problem if you have multiple projects inside a solution and one of them is physically located inside solution folder. I solved this by right click on this folder inside Solution tree -> then pressing "exclude from project"

提交回复
热议问题