代码拉取完成,页面将自动刷新
同步操作将从 OrchardCore/Orchard-Training-Demo-Module 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
using OrchardCore.Modules.Manifest;
#pragma warning disable SA1114 // Parameter list should follow declaration (necessary for the comment)
[assembly: Module(
// Display name of the module. Will be displayed on the Modules page of the Dashboard if the module has just one
// feature (see below).
Name = "Lombiq Training Demo",
#pragma warning restore SA1114 // Parameter list should follow declaration
// Your name, company or any name that identifies the developers working on the project.
Author = "Lombiq Technologies",
// Optionally you can add a website URL (e.g. your company's website, GitHub repository URL).
Website = "https://github.com/Lombiq/Orchard-Training-Demo-Module",
// Version of the module.
Version = "0.0.1",
// Short description of the module.
Description = "Orchard Core training demo module for teaching Orchard Core fundamentals primarily by going " +
"through its source code."
)]
// This is a big module so it has multiple features. What are features, you ask? You can divide a module into multiple
// "features"; in the Orchard sense, a feature is a piece of functionality that you can individually turn on or off on
// the admin. It's like a sub-module.
// If you have multiple features in a module then you also have to have one for the base feature (otherwise you can't
// turn that on). If you don't have multiple features then the Category and Dependencies configuration from below can
// just directly go to the Module attribute.
#pragma warning disable SA1114 // Parameter list should follow declaration (necessary for the comment)
[assembly: Feature(
// The technical ID of the feature. The base feature should have the same name as the module (i.e. its csproj file).
Id = "Lombiq.TrainingDemo",
#pragma warning restore SA1114 // Parameter list should follow declaration
// Display name of the feature, displayed on the Modules page of the Dashboard.
Name = "Lombiq Training Demo",
// Features are categorized on the Dashboard so it's a good idea to put similar features/modules together into a
// separate section.
Category = "Training",
// Short description of the feature. It will be displayed on the Dashboard (where you can enable/disable it).
Description = "Orchard Core training demo module for teaching Orchard Core fundamentals primarily by going " +
"through its source code.",
// Features can have dependencies which are other module names (name of the project) or if these modules have
// sub-features too then the name of the feature. If you use any service, taghelper etc. coming from an Orchard Core
// feature then you need to include them in this list. Orchard Core will make sure to enable all dependent features
// when you enable a feature that has dependencies. Without this some features would not work even if the assembly
// is referenced in the project.
Dependencies = new[]
{
"OrchardCore.Admin",
"OrchardCore.Apis.GraphQL",
"OrchardCore.BackgroundTasks",
"OrchardCore.ContentFields",
"OrchardCore.Contents",
"OrchardCore.ContentTypes",
"OrchardCore.DynamicCache",
"OrchardCore.Features",
"OrchardCore.HomeRoute",
"OrchardCore.Layers",
"OrchardCore.Localization",
"OrchardCore.Media",
"OrchardCore.Navigation",
"OrchardCore.Recipes",
"OrchardCore.Resources",
"OrchardCore.Roles",
"OrchardCore.Settings",
"OrchardCore.Themes",
"OrchardCore.Users",
"OrchardCore.Workflows",
}
)]
// And we also have a second feature!
#pragma warning disable SA1114 // Parameter list should follow declaration (necessary for the comment)
[assembly: Feature(
// We commonly suffix the base feature/module ID and name for sub-features.
Id = "Lombiq.TrainingDemo.Middlewares",
#pragma warning restore SA1114 // Parameter list should follow declaration
Name = "Lombiq Training Demo - Middlewares",
Category = "Training",
Description = "Demonstrates how to write middlewares in a separate feature.",
// It's usual for sub-features to depend on the base feature but this is not mandatory.
Dependencies = new[]
{
"Lombiq.TrainingDemo",
}
)]
// How do you distinguish what's activated when turning on a feature? With the same Feature attribute! Check out the
// Startup.cs file for the Startup class corresponding to both features but then follow up here!
// END OF TRAINING SECTION: Manifest
// NEXT STATION: Controllers/YourFirstOrchardCoreController.cs
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。