From d8f96452b09dd4f35d9f8424458eade6055ddfec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Halil=20=C4=B0brahim=20Kalkan?= Date: Fri, 5 Jan 2018 10:15:03 +0300 Subject: [PATCH] Updated documents and samples. --- docs/Getting-Started-AspNetCore-Application.md | 6 ++++-- docs/Getting-Started-Console-Application.md | 8 +++++--- .../BasicAspNetCoreApplication.csproj | 4 ++-- src/Volo.Abp.Castle.Core/Volo.Abp.Castle.Core.csproj | 2 +- .../Volo/Abp/Castle/AbpCastleCoreModule.cs | 1 - 5 files changed, 12 insertions(+), 9 deletions(-) diff --git a/docs/Getting-Started-AspNetCore-Application.md b/docs/Getting-Started-AspNetCore-Application.md index 0dc0df84b0..9e45d80e5d 100644 --- a/docs/Getting-Started-AspNetCore-Application.md +++ b/docs/Getting-Started-AspNetCore-Application.md @@ -1,5 +1,7 @@ ## Getting Started ABP With AspNet Core MVC Web Application +This tutorial explains how to start ABP from scratch with minimal dependencies. You generally want to start with a ***startup template*** (TODO: link). + ### Create A New Project 1. Create a new empty AspNet Core Web Application from Visual Studio: @@ -129,7 +131,7 @@ Derived ``HomeController`` from ``AbpController`` instead of standard ``Controll While AspNet Core's Dependency Injection (DI) system is fine for basic requirements, Autofac provides advanced features like Property Injection and Method Interception which are required by ABP to perform advanced application framework features. -Replacing AspNet Core's DI system by Autofac and integrating to ABP is easy. +Replacing AspNet Core's DI system by Autofac and integrating to ABP is pretty easy. 1. Install Volo.Abp.Autofac package @@ -149,7 +151,7 @@ public class AppModule : AbpModule ```` 3. Change ``services.AddApplication();`` line in the ``Startup`` class as shown below: - + ````C# services.AddApplication(options => { diff --git a/docs/Getting-Started-Console-Application.md b/docs/Getting-Started-Console-Application.md index 985a19bc02..9f176be5c9 100644 --- a/docs/Getting-Started-Console-Application.md +++ b/docs/Getting-Started-Console-Application.md @@ -1,5 +1,7 @@ ## Getting Started ABP With Console Application +This tutorial explains how to start ABP from scratch with minimal dependencies. You generally want to start with a ***startup template*** (TODO: link). + ### Create A New Project Create a new Regular .Net Core Console Application from Visual Studio: @@ -8,10 +10,10 @@ Create a new Regular .Net Core Console Application from Visual Studio: ### Install Volo.Abp Package -Volo.Abp is the core nuget package to create ABP based applications. So, install it to your project: +Volo.Abp.Core is the core nuget package to create ABP based applications. So, install it to your project: ```` -Install-Package Volo.Abp +Install-Package Volo.Abp.Core ```` ### Create First ABP Module @@ -88,7 +90,7 @@ namespace AbpConsoleDemo ```` -``ITransientDependency`` is a special interface of ABP that automatically registers the service as transient (TODO: link to MS DI documentation and ABP DI documentation). +``ITransientDependency`` is a special interface of ABP that automatically registers the service as transient (see [dependency injection document](Dependency-Injection.md)). Now, we can resolve the ``HelloWorldService`` and say hello. Change the Program.cs as shown below: diff --git a/samples/BasicAspNetCoreApplication/BasicAspNetCoreApplication/BasicAspNetCoreApplication.csproj b/samples/BasicAspNetCoreApplication/BasicAspNetCoreApplication/BasicAspNetCoreApplication.csproj index 0ac0472973..0f0b70d76c 100644 --- a/samples/BasicAspNetCoreApplication/BasicAspNetCoreApplication/BasicAspNetCoreApplication.csproj +++ b/samples/BasicAspNetCoreApplication/BasicAspNetCoreApplication/BasicAspNetCoreApplication.csproj @@ -10,8 +10,8 @@ - - + + diff --git a/src/Volo.Abp.Castle.Core/Volo.Abp.Castle.Core.csproj b/src/Volo.Abp.Castle.Core/Volo.Abp.Castle.Core.csproj index 5f8d84731c..d226ae7a85 100644 --- a/src/Volo.Abp.Castle.Core/Volo.Abp.Castle.Core.csproj +++ b/src/Volo.Abp.Castle.Core/Volo.Abp.Castle.Core.csproj @@ -18,7 +18,7 @@ - + \ No newline at end of file diff --git a/src/Volo.Abp.Castle.Core/Volo/Abp/Castle/AbpCastleCoreModule.cs b/src/Volo.Abp.Castle.Core/Volo/Abp/Castle/AbpCastleCoreModule.cs index 55c4302af8..d250aab5d0 100644 --- a/src/Volo.Abp.Castle.Core/Volo/Abp/Castle/AbpCastleCoreModule.cs +++ b/src/Volo.Abp.Castle.Core/Volo/Abp/Castle/AbpCastleCoreModule.cs @@ -4,7 +4,6 @@ using Volo.Abp.Modularity; namespace Volo.Abp.Castle { - [DependsOn(typeof(AbpCommonModule))] public class AbpCastleCoreModule : AbpModule { public override void ConfigureServices(IServiceCollection services)