简体   繁体   English

如何为Umbraco创建项目包?

[英]How to create a project package for Umbraco?

I need to create a project for umbraco. 我需要为umbraco创建一个项目。 I Don't know where to start and where to see about this. 我不知道从哪里开始以及在哪里看到这个。 I googled and found nothing helpful instead I got confused what is umbraco project. 我用Google搜索,没有发现任何有用的信息,而是让我感到困惑的是什么是umbraco项目。 To create a umbraco project whether I need to create web applications or class library in visual studio. 创建一个umbraco项目是否需要在visual studio中创建Web应用程序或类库。

I know these are basic but I'm confused in that only. 我知道这些是基本的,但我只是在困惑。 would somebody help me to create the project for umbraco CMS. 有人会帮助我为umbraco CMS创建项目。

If I understand you correctly, you are looking for resources on how to create an Umbraco Package. 如果我理解正确,您正在寻找有关如何创建Umbraco包的资源。

Once you have come up with a way to extend the functionality of Umbraco (ie: a new data type, a new section, some event handlers that are fired on publish, etc), you'll want to find a way to package that up and redistribute it, possibly even on Our Umbraco . 一旦你想出了一种扩展Umbraco功能的方法(即:一个新的数据类型,一个新的部分,一些在发布时触发的事件处理程序等),你会想要找到一种方法来打包它并重新分配它,甚至可能在我们的Umbraco上 There are a couple ways to go about doing this: 有几种方法可以做到这一点:

  1. The Umbraco backoffice comes with a way to package up document types, data types, templates, assemblies, etc.: Umbraco后台提供了一种打包文档类型,数据类型,模板,程序集等的方法:

    1. In the Developer section, expand Packages . Developer部分中,展开Packages
    2. Right-click Created packages , and choose Create . 右键单击“ 创建的包” ,然后选择“ 创建”
    3. Fill in package details, select content and files, write package actions, etc. 填写包裹详细信息,选择内容和文件,编写包裹操作等。
  2. Create packages within Visual Studio using MSBuild . 使用MSBuild在Visual Studio中创建包 This is a more advanced (and therefore complicated) approach. 这是一种更先进(也因此更复杂)的方法。 I've found it helpful to look at the source code of some of the popular packages out there, such as uComponents , to get a good understanding on how this is done. 我发现查看一些流行的软件包的源代码很有帮助,比如uComponents ,可以很好地理解它是如何完成的。

The package file is simply a zip file that contains xml with instructions for Umbraco on what to do when it is installed. 包文件只是一个zip文件,其中包含xml,其中包含Umbraco安装时的操作说明。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM