Skip to content

Commit

Permalink
Adding scaffolded OrchardCore module files
Browse files Browse the repository at this point in the history
--HG--
branch : orchard-core
  • Loading branch information
barthamark committed Oct 3, 2018
1 parent d60cd1d commit c5dbcf3
Show file tree
Hide file tree
Showing 5 changed files with 72 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Controllers/HomeController.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Lombiq.TrainingDemo.Controllers
{
public class HomeController : Controller
{
public ActionResult Index()
{
return View();
}
}
}
19 changes: 19 additions & 0 deletions Lombiq.TrainingDemo.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<Project Sdk="Microsoft.NET.Sdk.Razor">

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="OrchardCore.Module.Targets" Version="1.0.0-beta3-68510" />
<PackageReference Include="OrchardCore.ContentManagement" Version="1.0.0-beta3-68510" />
<PackageReference Include="OrchardCore.ContentTypes.Abstractions" Version="1.0.0-beta3-68510" />
<PackageReference Include="OrchardCore.DisplayManagement" Version="1.0.0-beta3-68510" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Mvc" Version="2.1.2" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="2.1.1" />
</ItemGroup>

</Project>
10 changes: 10 additions & 0 deletions Manifest.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
using OrchardCore.Modules.Manifest;

[assembly: Module(
Name = "Lombiq.TrainingDemo",
Author = "The Orchard Team",
Website = "http://orchardproject.net",
Version = "0.0.1",
Description = "Lombiq.TrainingDemo",
Category = "Content Management"
)]
25 changes: 25 additions & 0 deletions Startup.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
using System;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Routing;
using Microsoft.Extensions.DependencyInjection;
using OrchardCore.Modules;

namespace Lombiq.TrainingDemo
{
public class Startup : StartupBase
{
public override void ConfigureServices(IServiceCollection services)
{
}

public override void Configure(IApplicationBuilder builder, IRouteBuilder routes, IServiceProvider serviceProvider)
{
routes.MapAreaRoute(
name: "Home",
areaName: "Lombiq.TrainingDemo",
template: "Home/Index",
defaults: new { controller = "Home", action = "Index" }
);
}
}
}
1 change: 1 addition & 0 deletions Views/Home/Index.cshtml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Template

0 comments on commit c5dbcf3

Please sign in to comment.