我可以重用/引用在另一个项目中创建的可视Web部件吗? [英] Can I reuse/refer to a visual webpart that was created in another project?

查看:69
本文介绍了我可以重用/引用在另一个项目中创建的可视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:

结果:

谢谢

最好的问候


这篇关于我可以重用/引用在另一个项目中创建的可视Web部件吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆