我可以重用/引用在另一个项目中创建的可视Web部件吗?

问题描述:

我创建了一个全新的共享点项目,我想重用在另一个项目中创建的可视化Web部件.那怎么办?我尝试使用添加现有项目",但不是将它们作为一个组添加,而是作为单个项目添加. 像可重用的webpart一样如何引用?

I have created a brand new sharepoint project, I would like to reuse one of the visual webpart that was created in another project. How can that be done? I tried to use "add existing item", but they were not added as a group, but individual items. How can that be reference as if a reusable webpart?

先谢谢了.您的帮助将不胜感激!

Thanks in advance. Your help would be greatly appreciate!

在新的SharePoint项目中,右键单击该项目,然后选择添加"->现有项目"->找到Visual Web部件项目文件夹",并引用.csproj扩展文件:

In the new SharePoint Project, right click the Project and then select Add->Existing Project->find the Visual Web Part Project Folder and reference the .csproj extension file:

结果:

谢谢

最好的问候