使用功能部署 webpart [英] deploy webpart with feature
问题描述
如何在功能中部署 webpart?
How do you deploy a webpart within a feature?
我有我的 webpart 作为 MyWebPart.cs 文件.
i have my webpart as MyWebPart.cs file.
我得到了一个用于其他用途的功能.我只是想知道我是否可以将这个 webpart 与该功能一起部署.
ive got got a feature which is used for something else. im just wondering if i can deploy this webpart along with the feature.
推荐答案
我发现的最简单的方法是使用诸如 WSPBuilder.这与 Visual Studio 集成,并允许您创建具有功能的新 Web 部件.
The easiest way I've found is to use a tool such as WSPBuilder. This integrates with Visual Studio and allows you to create a new web part with feature.
试试这个并合并您已经编写的现有代码和功能.我保证与手动完成所有工作相比,它会为您节省大量时间.
Try this out and incorporate the existing code and feature you've already written. I guarantee it will save you a lot of time compared to doing everything manually.
VSeWSS 也可以做这项工作,但我从来没有发现它那么容易使用.
VSeWSS may also do the job but I've never found it as easy to use.
这篇关于使用功能部署 webpart的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!