如何为Umbraco创建项目包? [英] How to create a project package for Umbraco?

查看:49
本文介绍了如何为Umbraco创建项目包?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要为umbraco创建一个项目.我不知道从哪里开始以及在哪里可以看到.我用谷歌搜索,发现没有什么帮助,反而让我感到困惑的是什么是umbraco项目.要创建umbraco项目,是否需要在Visual Studio中创建Web应用程序或类库.

I need to create a project for 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. To create a umbraco project whether I need to create web applications or class library in visual studio.

我知道这些是基本知识,但我仅对此感到困惑.会帮助我为umbraco CMS创建项目.

I know these are basic but I'm confused in that only. would somebody help me to create the project for umbraco CMS.

推荐答案

如果我对您的理解正确,那么您正在寻找有关如何创建Umbraco软件包的资源.

If I understand you correctly, you are looking for resources on how to create an Umbraco Package.

一旦您想出了一种扩展Umbraco功能的方法(即:一种新的数据类型,一个新的部分,一些在发布时触发的事件处理程序等),您将想找到一种方法来扩展Umbraco的功能.打包并重新分发,甚至可以在我们的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. There are a couple ways to go about doing this:

  1. Umbraco后台提供了一种打包文档类型,数据类型,模板,程序集等的方法:

  1. Developer 部分中,展开 Packages .
  2. 右键单击"已创建的程序包",然后选择"创建".
  3. 填写软件包详细信息,选择内容和文件,编写软件包操作等.
  1. In the Developer section, expand Packages.
  2. Right-click Created packages, and choose Create.
  3. Fill in package details, select content and files, write package actions, etc.

  • 使用MSBuild在Visual Studio中创建包.这是一种更高级(因此很复杂)的方法.我发现查看其中一些受欢迎的软件包的源代码很有帮助,例如

  • Create packages within Visual Studio using MSBuild. 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.

    该软件包文件只是一个zip文件,其中包含xml,其中包含有关Umbraco安装时的操作说明.

    The package file is simply a zip file that contains xml with instructions for Umbraco on what to do when it is installed.

    这篇关于如何为Umbraco创建项目包?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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