使用 VSeWSS 将 XAP 文件部署到 ~/ClientBin

发布于 2024-08-02 00:45:46 字数 399 浏览 4 评论 0原文

我有一个 SharePoint(使用 VSeWSS 1.3)项目,它创建一个用于安装我的自定义内容类型的 WSP 文件。 其中一种类型还安装了 DispForm.aspx 的自定义版本,该版本托管 Silverlight 控件,作为 XAP 文件位于 ~/ClientBin 中。

ListDefinition.xml 中是否有方法 文件来指示 VSeWSS 将我的 XAP 文件部署到 ~/ClientBin 作为 WSP 解决方案的一部分? 我知道如何将图像部署到 TEMPLATES\images 文件夹,但不知道如何部署到 ~/ClientBin 。

菲利普

I have a SharePoint (using VSeWSS 1.3) project that creates a WSP file which installs my custom content types. One of the type also installs a custom version of DispForm.aspx which is hosting a Silverlight control, located in the ~/ClientBin as a XAP file.

Is there a way in the ListDefinition.xml file to instruct VSeWSS to deploy my XAP file into ~/ClientBin as part of the WSP solution? I know how to deploy images to the TEMPLATES\images folder, but not to ~/ClientBin .

Philipp

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

拧巴小姐 2024-08-09 00:45:46

要将 XAP 文件放入 ClientBin 目录中,您可以尝试这样做。 让解决方案将 XPA 文件部署到 TEMPLATE 目录 (12 Hive) 中的文件夹中。 通过在FeatureInstalled 事件上触发的FeatureRecevier,您可以将XAP 文件从其在TEMPLATE 目录的子文件夹中的位置复制到ClientBin 文件夹。

当解决方案被收回时,FeatureUnistalled 事件可用于从 ClientBin 文件夹中删除 XAP 文件。

To get the XAP file into the ClientBin directory you could try this. Let the solution deploy the XPA file to a folder within the TEMPLATE directory (12 Hive). With a FeatureRecevier that triggers on the FeatureInstalled event you could then copy the XAP file from its location in the sub folder of the TEMPLATE directory to the ClientBin folder.

The FeatureUnistalled event can be used to remove the XAP file from the ClientBin folder when the solution is retracted.

如果没有 2024-08-09 00:45:46

WSP 可以将文件放置在以下位置:

  1. Bin 目录内的任何子文件夹
  2. 12 Hive GAC
  3. Web 应用程序的

。 考虑到上述情况,我建议您更改保存 XAP 文件的位置。 你可以考虑将其放在_Layouts中。 我就是这么做的

WSP can place the Files in following locations

  1. Any Sub Folder inside 12 Hive
  2. GAC
  3. Bin directory of the Web Application.

Considering the above I recommand you to Change the Location where you keep the XAP file. You can think about placing it in the _Layouts. That is how I Did

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文