VS2010: Use namespace from another project within the solution?

后端 未结 2 1489
情深已故
情深已故 2021-02-01 14:56

I have two projects within a single solution in Visual Studio 2010. These projects are called Project1 and Project2. Within these projects, two namespaces are defined, Namespa

2条回答
  •  孤独总比滥情好
    2021-02-01 15:22

    Yes, add a reference to Project1 from Project2. Right-click the project, choose "Add References" then from the "Projects" tab, choose Project1.

提交回复
热议问题