如何使用 VseWSS 1.3 创建新文件夹并将文件部署到 12 个配置单元?
我使用 VSeWSS 1.3 创建了一个 Web 部件。 它创建一个 wsp 文件,并安装我的 Web 部件,一切正常。
我还想在 12 配置单元的 LAYOUTS 目录中创建一个文件夹,并在其中放置几个文件。 我该怎么做呢? 我知道我可以手动将文件放置在那里,但我更愿意在使用 stsadm 安装解决方案时一次性完成所有操作。
是否有使用 VSeWSS 1.3 来执行此操作的最佳实践指南? 他们在这个新版本中改变了很多东西,我想确保我不会搞砸任何事情。
I have created a web part using VSeWSS 1.3. It creates a wsp file and my web part gets installed, everything works great.
I would like to also create a folder in the LAYOUTS directory of the 12 hive and place a couple files in there. How do I go about doing this? I know that I can manually place the files there, but I would prefer to have it all done in one fell swoop when I uses stsadm to install my solution.
Is there a best practices guide out there for using VSeWSS 1.3 to do this? They changed a bunch of stuff with this new version and I want to make sure I don't mess anything up.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
您可以在 Webpart 项目中创建新的文件夹结构,例如:
Templates/Layouts/CustomFolder 并将文件放入 CustomFolder 目录中并将它们包含在您的项目中。
当您转到 Visual Studio 中的 WSP 视图时,您可以在 manifest.xml 中看到您的文件已包含在部署中。
我现在已经在多个项目中成功地做到了这一点。
You can create a new folder structure in your webpart project, like:
Templates/Layouts/CustomFolder and put your files in the CustomFolder directory and include them in your project.
When you go to the WSP View in Visual Studio, you can see in the manifest.xml that your files are being included in the deployment.
I have done this successfully on multiple projects now.
如果有人想知道,VSeWSS 1.3 用户指南非常有帮助。 它安装在与工具本身相同的目录中,默认位于
C:\Program Files\Microsoft SharePoint Developer Tools 9.0\VSeWSS13.CHM
In case anyone is wondering, the VSeWSS 1.3 user guide is incredibly helpful. It is installed to the same directory as the tool itself, default in
C:\Program Files\Microsoft SharePoint Developer Tools 9.0\VSeWSS13.CHM
您可以看到带有屏幕截图的工作示例这里
You can see a working example with screenshots Here
上述内容的简单分步教程以及部署/撤回脚本位于 通过 SharePoint 解决方案将新文件添加到 12-Hive。 只需按照以下步骤操作,几分钟后您就可以向 12-Hive 添加任何您想要的内容!
A simple step-by-step tutorial for the above, along with deploy/retract scripts is here at Add New Files To 12-Hive Through A SharePoint Solution. Just follow the steps and in a few minutes you'll be able to add whatever you want to the 12-Hive!