相同的Webpart部署,但名称不同 [英] Same Webpart deployment as different names changes

查看:66
本文介绍了相同的Webpart部署,但名称不同的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个场景,其中复杂的webpart1在_layouts中具有控制模板,.aspx文件.我进行了一些增强,并考虑到了同一Web部件的多个实例,因此我的队友在我处理一项功能时会在某些部分上工作.

I have a scenario where complex webpart1 which has controlled templates, .aspx files in _layouts. I have some enhancements and thought of having multiple instance of same webpart so my teammate work on some portion while I am working on one feature.

我尝试重命名webpart2应用程序包名称,但是在安装时会删除原始的webpart1并重新部署它.我想要一个具有2个实例的同一个Webpart.您能告诉我我需要做些什么更改吗?

I tried renaming the webpart2 App package name but when I install it removes the original webpart1 and redeploys it. I want to have a same webpart with 2 instances. Will you please let me know what are the changes I have to do?

谢谢

Shri

推荐答案

Hi  据我了解,您和您的队友希望在同一个可视化Webpart项目中工作.并且您想部署同一个Webpart的多个实例(如果我错了,请纠正我).

As i understood , you and your team mate want to work on the same visual webpart project .And you want to deploy more than one instance of the same webpart (Correct me if i am wrong) .

为避免任何覆盖,您可以执行以下操作

for avoiding any override you can do the following

1-创建一个临时(可视化Webpart)SharePoint项目并在其中复制功能.然后您就可以开发目标功能了.

1- Create a temp (visual webpart) SharePoint project and copy the features there . then you can develop on the target feature .

2-和其他团队同事可以进行原始项目.

2- and other team colleague can work on the original project .

3-完成单元测试并确保一切正常后,然后与原始测试进行集成. (通过移动/复制)新的工件.

3- after you've finished your unit test and make sure everything works fine, then do integration with the original one. (by moving/copy) the new artifacts.


这篇关于相同的Webpart部署,但名称不同的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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