自定义内容类型未包装在.app Visual Studio中 [英] Custom Content Types not packing in .app Visual Studio

查看:61
本文介绍了自定义内容类型未包装在.app Visual Studio中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我目前正在开发一个SharePoint项目,我希望将文件类型(.MyDocument扩展名)与自定义打开,编辑和新关联行动。我想我需要一个自定义内容类型。因此,我创建了一个Visual Studio SharePoint加载项解决方案
(VS2015 w / office开发人员工具),并尝试发布该应用程序。但是,遗憾的是,SharePoint中没有显示自定义内容类型。我确实创建了一个自定义菜单项操作,并且工作正常。 

I'm currently working on a SharePoint project where I want to associate a file type (.MyDocument extension) with a custom open, edit and new action. I figured that I needed a Custom Content Type for that. So I created a Visual Studio SharePoint Add-In solution (VS2015 w/ office developer tools) and tried to publish the app. But, unfortunate, no custom content-type showing up in SharePoint. I do have created a custom menu item action, and that works fine. 

我调试了我的问题,我发现发布的.app文件不包含内容类型元素文件。我确认内容类型在功能中。

I've debugged my issue and I found out that the published .app file does not contain the Content Type Elements file. I verified that the content type is in the Feature.

有人知道如何解决此问题吗?其他人是否遇到同样的问题?

Does someone know how I can solve this issue? Are other people experiencing the same problem?

谢谢!

Tom

推荐答案

嗨Tom,

我创建了一个带有内容类型的SharePoint托管加载项,然后将其部署到开发者站点。

I created a SharePoint hosted add-in with a content type, then deploy it to the developer site.

然后我提取.app文件,看它包含[Content_Types] .xml。

And then I extract .app file and see it contains the [Content_Types].xml.

检查下面的截图:

请提供有关如何重现此问题的更多详细信息,其他人会更容易研究它。

Please provide more details about how to reproduce this issue, others would get easier to research on it.

或尝试更新最新版本的VS2015和办公开发人员工具。

Or try to update the latest version of VS2015 and office developer tools.

最好的问候,

丹尼斯


这篇关于自定义内容类型未包装在.app Visual Studio中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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