This commit is contained in:
Halil İbrahim Kalkan 2015-07-16 12:04:40 +03:00
Родитель 397b3babce
Коммит b191ded14e
24 изменённых файлов: 375 добавлений и 8 удалений

7
.gitignore поставляемый
Просмотреть файл

@ -1,6 +1,13 @@
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.
# Logs
app/MyAbpZeroProject.Web/Logs/
# Nuget packages
nupkg/*.nupkg
nupkg/push_blog_modules.bat
# User-specific files
*.suo
*.user

Просмотреть файл

@ -5,3 +5,9 @@ NOTE: THIS SAMPLE PROJECT IS WORK-IN-PROGRESS AND NOT PROPERLY WORKING YET!
__src__ folder contains the sample blog module.
__app__ folder contains an application uses the blog module.
## Nuget packages for blog module
* https://www.nuget.org/packages/Abp.Samples.Blog.Core
* https://www.nuget.org/packages/Abp.Samples.Blog.EntityFramework
* https://www.nuget.org/packages/Abp.Samples.Blog.Application
* https://www.nuget.org/packages/Abp.Samples.Blog.Web

Просмотреть файл

@ -263,3 +263,34 @@ System.NotSupportedException: The specified LINQ expression contains references
at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethodWithFilters(IAsyncResult asyncResult)
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass21.<>c__DisplayClass2b.<BeginInvokeAction>b__1c()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass21.<BeginInvokeAction>b__1e(IAsyncResult asyncResult)
DEBUG 2015-07-16 11:37:43,293 [1 ] Abp.Modules.AbpModuleManager - Loading Abp modules...
DEBUG 2015-07-16 11:37:44,492 [1 ] Abp.Modules.AbpModuleManager - Found 17 ABP modules in total.
DEBUG 2015-07-16 11:37:44,495 [1 ] Abp.Modules.AbpModuleManager - Loaded module: Abp.AutoMapper.AbpAutoMapperModule, Abp.AutoMapper, Version=0.6.4.0, Culture=neutral, PublicKeyToken=null
DEBUG 2015-07-16 11:37:44,497 [1 ] Abp.Modules.AbpModuleManager - Loaded module: Abp.AbpKernelModule, Abp, Version=0.6.4.1, Culture=neutral, PublicKeyToken=null
DEBUG 2015-07-16 11:37:44,497 [1 ] Abp.Modules.AbpModuleManager - Loaded module: Abp.EntityFramework.AbpEntityFrameworkModule, Abp.EntityFramework, Version=0.6.4.1, Culture=neutral, PublicKeyToken=null
DEBUG 2015-07-16 11:37:44,497 [1 ] Abp.Modules.AbpModuleManager - Loaded module: Abp.Samples.Blog.AbpSampleBlogApplicationModule, Abp.Samples.Blog.Application, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2015-07-16 11:37:44,497 [1 ] Abp.Modules.AbpModuleManager - Loaded module: Abp.Samples.Blog.AbpSampleBlogCoreModule, Abp.Samples.Blog.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2015-07-16 11:37:44,497 [1 ] Abp.Modules.AbpModuleManager - Loaded module: Abp.Samples.Blog.EntityFramework.AbpSampleBlogEntityFrameworkModule, Abp.Samples.Blog.EntityFramework, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2015-07-16 11:37:44,497 [1 ] Abp.Modules.AbpModuleManager - Loaded module: Abp.Samples.Blog.Web.AbpSampleBlogWebModule, Abp.Samples.Blog.Web, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2015-07-16 11:37:44,497 [1 ] Abp.Modules.AbpModuleManager - Loaded module: Abp.WebApi.AbpWebApiModule, Abp.Web.Api, Version=0.6.4.0, Culture=neutral, PublicKeyToken=null
DEBUG 2015-07-16 11:37:44,497 [1 ] Abp.Modules.AbpModuleManager - Loaded module: Abp.Web.AbpWebModule, Abp.Web, Version=0.6.4.0, Culture=neutral, PublicKeyToken=null
DEBUG 2015-07-16 11:37:44,497 [1 ] Abp.Modules.AbpModuleManager - Loaded module: Abp.Web.Mvc.AbpWebMvcModule, Abp.Web.Mvc, Version=0.6.4.0, Culture=neutral, PublicKeyToken=null
DEBUG 2015-07-16 11:37:44,498 [1 ] Abp.Modules.AbpModuleManager - Loaded module: Abp.Zero.AbpZeroCoreModule, Abp.Zero, Version=0.6.4.0, Culture=neutral, PublicKeyToken=null
DEBUG 2015-07-16 11:37:44,498 [1 ] Abp.Modules.AbpModuleManager - Loaded module: Abp.Zero.EntityFramework.AbpZeroEntityFrameworkModule, Abp.Zero.EntityFramework, Version=0.6.4.0, Culture=neutral, PublicKeyToken=null
DEBUG 2015-07-16 11:37:44,498 [1 ] Abp.Modules.AbpModuleManager - Loaded module: MyAbpZeroProject.MyAbpZeroProjectApplicationModule, MyAbpZeroProject.Application, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2015-07-16 11:37:44,498 [1 ] Abp.Modules.AbpModuleManager - Loaded module: MyAbpZeroProject.MyAbpZeroProjectCoreModule, MyAbpZeroProject.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2015-07-16 11:37:44,498 [1 ] Abp.Modules.AbpModuleManager - Loaded module: MyAbpZeroProject.MyAbpZeroProjectDataModule, MyAbpZeroProject.EntityFramework, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2015-07-16 11:37:44,498 [1 ] Abp.Modules.AbpModuleManager - Loaded module: MyAbpZeroProject.Web.MyAbpZeroProjectWebModule, MyAbpZeroProject.Web, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2015-07-16 11:37:44,498 [1 ] Abp.Modules.AbpModuleManager - Loaded module: MyAbpZeroProject.MyAbpZeroProjectWebApiModule, MyAbpZeroProject.WebApi, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2015-07-16 11:37:44,501 [1 ] Abp.Modules.AbpModuleManager - 17 modules loaded.
DEBUG 2015-07-16 11:37:45,178 [1 ] Abp.AutoMapper.AbpAutoMapperModule - Found 3 classes defines auto mapping attributes
DEBUG 2015-07-16 11:37:45,178 [1 ] Abp.AutoMapper.AbpAutoMapperModule - Abp.Samples.Blog.Posts.Dtos.PostDto
DEBUG 2015-07-16 11:37:45,308 [1 ] Abp.AutoMapper.AbpAutoMapperModule - MyAbpZeroProject.Sessions.Dto.TenantLoginInfoDto
DEBUG 2015-07-16 11:37:45,314 [1 ] Abp.AutoMapper.AbpAutoMapperModule - MyAbpZeroProject.Sessions.Dto.UserLoginInfoDto
DEBUG 2015-07-16 11:37:46,110 [1 ] Default - Dynamic web api controller is created for type 'Abp.Samples.Blog.Posts.IPostAppService' with service name 'blog/post'.
DEBUG 2015-07-16 11:37:46,116 [1 ] Default - Dynamic web api controller is created for type 'MyAbpZeroProject.Sessions.ISessionAppService' with service name 'app/session'.
DEBUG 2015-07-16 11:37:46,333 [1 ] Abp.Localization.LocalizationManager - Initializing 4 localization sources.
DEBUG 2015-07-16 11:37:46,338 [1 ] Abp.Localization.LocalizationManager - Initialized localization source: Abp
DEBUG 2015-07-16 11:37:46,338 [1 ] Abp.Localization.LocalizationManager - Initialized localization source: AbpZero
DEBUG 2015-07-16 11:37:46,341 [1 ] Abp.Localization.LocalizationManager - Initialized localization source: MyAbpZeroProject
DEBUG 2015-07-16 11:37:46,341 [1 ] Abp.Localization.LocalizationManager - Initialized localization source: AbpWeb

Просмотреть файл

@ -0,0 +1,4 @@
"..\src\.nuget\NuGet.exe" "pack" "..\src\Abp.Samples.Blog.Core\Abp.Samples.Blog.Core.csproj" -Properties Configuration=Release -IncludeReferencedProjects -Symbols
"..\src\.nuget\NuGet.exe" "pack" "..\src\Abp.Samples.Blog.EntityFramework\Abp.Samples.Blog.EntityFramework.csproj" -Properties Configuration=Release -IncludeReferencedProjects -Symbols
"..\src\.nuget\NuGet.exe" "pack" "..\src\Abp.Samples.Blog.Application\Abp.Samples.Blog.Application.csproj" -Properties Configuration=Release -IncludeReferencedProjects -Symbols
"..\src\.nuget\NuGet.exe" "pack" "..\src\Abp.Samples.Blog.Web\Abp.Samples.Blog.Web.csproj" -Properties Configuration=Release -IncludeReferencedProjects -Symbols

6
src/.nuget/NuGet.Config Normal file
Просмотреть файл

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<solution>
<add key="disableSourceControlIntegration" value="true" />
</solution>
</configuration>

Двоичные данные
src/.nuget/NuGet.exe Normal file

Двоичный файл не отображается.

144
src/.nuget/NuGet.targets Normal file
Просмотреть файл

@ -0,0 +1,144 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">$(MSBuildProjectDirectory)\..\</SolutionDir>
<!-- Enable the restore command to run before builds -->
<RestorePackages Condition=" '$(RestorePackages)' == '' ">false</RestorePackages>
<!-- Property that enables building a package from a project -->
<BuildPackage Condition=" '$(BuildPackage)' == '' ">false</BuildPackage>
<!-- Determines if package restore consent is required to restore packages -->
<RequireRestoreConsent Condition=" '$(RequireRestoreConsent)' != 'false' ">true</RequireRestoreConsent>
<!-- Download NuGet.exe if it does not already exist -->
<DownloadNuGetExe Condition=" '$(DownloadNuGetExe)' == '' ">false</DownloadNuGetExe>
</PropertyGroup>
<ItemGroup Condition=" '$(PackageSources)' == '' ">
<!-- Package sources used to restore packages. By default, registered sources under %APPDATA%\NuGet\NuGet.Config will be used -->
<!-- The official NuGet package source (https://www.nuget.org/api/v2/) will be excluded if package sources are specified and it does not appear in the list -->
<!--
<PackageSource Include="https://www.nuget.org/api/v2/" />
<PackageSource Include="https://my-nuget-source/nuget/" />
-->
</ItemGroup>
<PropertyGroup Condition=" '$(OS)' == 'Windows_NT'">
<!-- Windows specific commands -->
<NuGetToolsPath>$([System.IO.Path]::Combine($(SolutionDir), ".nuget"))</NuGetToolsPath>
</PropertyGroup>
<PropertyGroup Condition=" '$(OS)' != 'Windows_NT'">
<!-- We need to launch nuget.exe with the mono command if we're not on windows -->
<NuGetToolsPath>$(SolutionDir).nuget</NuGetToolsPath>
</PropertyGroup>
<PropertyGroup>
<PackagesProjectConfig Condition=" '$(OS)' == 'Windows_NT'">$(MSBuildProjectDirectory)\packages.$(MSBuildProjectName.Replace(' ', '_')).config</PackagesProjectConfig>
<PackagesProjectConfig Condition=" '$(OS)' != 'Windows_NT'">$(MSBuildProjectDirectory)\packages.$(MSBuildProjectName).config</PackagesProjectConfig>
</PropertyGroup>
<PropertyGroup>
<PackagesConfig Condition="Exists('$(MSBuildProjectDirectory)\packages.config')">$(MSBuildProjectDirectory)\packages.config</PackagesConfig>
<PackagesConfig Condition="Exists('$(PackagesProjectConfig)')">$(PackagesProjectConfig)</PackagesConfig>
</PropertyGroup>
<PropertyGroup>
<!-- NuGet command -->
<NuGetExePath Condition=" '$(NuGetExePath)' == '' ">$(NuGetToolsPath)\NuGet.exe</NuGetExePath>
<PackageSources Condition=" $(PackageSources) == '' ">@(PackageSource)</PackageSources>
<NuGetCommand Condition=" '$(OS)' == 'Windows_NT'">"$(NuGetExePath)"</NuGetCommand>
<NuGetCommand Condition=" '$(OS)' != 'Windows_NT' ">mono --runtime=v4.0.30319 "$(NuGetExePath)"</NuGetCommand>
<PackageOutputDir Condition="$(PackageOutputDir) == ''">$(TargetDir.Trim('\\'))</PackageOutputDir>
<RequireConsentSwitch Condition=" $(RequireRestoreConsent) == 'true' ">-RequireConsent</RequireConsentSwitch>
<NonInteractiveSwitch Condition=" '$(VisualStudioVersion)' != '' AND '$(OS)' == 'Windows_NT' ">-NonInteractive</NonInteractiveSwitch>
<PaddedSolutionDir Condition=" '$(OS)' == 'Windows_NT'">"$(SolutionDir) "</PaddedSolutionDir>
<PaddedSolutionDir Condition=" '$(OS)' != 'Windows_NT' ">"$(SolutionDir)"</PaddedSolutionDir>
<!-- Commands -->
<RestoreCommand>$(NuGetCommand) install "$(PackagesConfig)" -source "$(PackageSources)" $(NonInteractiveSwitch) $(RequireConsentSwitch) -solutionDir $(PaddedSolutionDir)</RestoreCommand>
<BuildCommand>$(NuGetCommand) pack "$(ProjectPath)" -Properties "Configuration=$(Configuration);Platform=$(Platform)" $(NonInteractiveSwitch) -OutputDirectory "$(PackageOutputDir)" -symbols</BuildCommand>
<!-- We need to ensure packages are restored prior to assembly resolve -->
<BuildDependsOn Condition="$(RestorePackages) == 'true'">
RestorePackages;
$(BuildDependsOn);
</BuildDependsOn>
<!-- Make the build depend on restore packages -->
<BuildDependsOn Condition="$(BuildPackage) == 'true'">
$(BuildDependsOn);
BuildPackage;
</BuildDependsOn>
</PropertyGroup>
<Target Name="CheckPrerequisites">
<!-- Raise an error if we're unable to locate nuget.exe -->
<Error Condition="'$(DownloadNuGetExe)' != 'true' AND !Exists('$(NuGetExePath)')" Text="Unable to locate '$(NuGetExePath)'" />
<!--
Take advantage of MsBuild's build dependency tracking to make sure that we only ever download nuget.exe once.
This effectively acts as a lock that makes sure that the download operation will only happen once and all
parallel builds will have to wait for it to complete.
-->
<MsBuild Targets="_DownloadNuGet" Projects="$(MSBuildThisFileFullPath)" Properties="Configuration=NOT_IMPORTANT;DownloadNuGetExe=$(DownloadNuGetExe)" />
</Target>
<Target Name="_DownloadNuGet">
<DownloadNuGet OutputFilename="$(NuGetExePath)" Condition=" '$(DownloadNuGetExe)' == 'true' AND !Exists('$(NuGetExePath)')" />
</Target>
<Target Name="RestorePackages" DependsOnTargets="CheckPrerequisites">
<Exec Command="$(RestoreCommand)"
Condition="'$(OS)' != 'Windows_NT' And Exists('$(PackagesConfig)')" />
<Exec Command="$(RestoreCommand)"
LogStandardErrorAsError="true"
Condition="'$(OS)' == 'Windows_NT' And Exists('$(PackagesConfig)')" />
</Target>
<Target Name="BuildPackage" DependsOnTargets="CheckPrerequisites">
<Exec Command="$(BuildCommand)"
Condition=" '$(OS)' != 'Windows_NT' " />
<Exec Command="$(BuildCommand)"
LogStandardErrorAsError="true"
Condition=" '$(OS)' == 'Windows_NT' " />
</Target>
<UsingTask TaskName="DownloadNuGet" TaskFactory="CodeTaskFactory" AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.v4.0.dll">
<ParameterGroup>
<OutputFilename ParameterType="System.String" Required="true" />
</ParameterGroup>
<Task>
<Reference Include="System.Core" />
<Using Namespace="System" />
<Using Namespace="System.IO" />
<Using Namespace="System.Net" />
<Using Namespace="Microsoft.Build.Framework" />
<Using Namespace="Microsoft.Build.Utilities" />
<Code Type="Fragment" Language="cs">
<![CDATA[
try {
OutputFilename = Path.GetFullPath(OutputFilename);
Log.LogMessage("Downloading latest version of NuGet.exe...");
WebClient webClient = new WebClient();
webClient.DownloadFile("https://www.nuget.org/nuget.exe", OutputFilename);
return true;
}
catch (Exception ex) {
Log.LogErrorFromException(ex);
return false;
}
]]>
</Code>
</Task>
</UsingTask>
</Project>

Просмотреть файл

@ -11,6 +11,8 @@
<AssemblyName>Abp.Samples.Blog.Application</AssemblyName>
<TargetFrameworkVersion>v4.5.1</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\</SolutionDir>
<RestorePackages>true</RestorePackages>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
@ -93,6 +95,7 @@
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="Abp.Samples.Blog.Application.nuspec" />
<None Include="app.config" />
<None Include="packages.config" />
</ItemGroup>
@ -104,6 +107,13 @@
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="..\packages\AutoMapper.3.3.1\tools\AutoMapper.targets" Condition="Exists('..\packages\AutoMapper.3.3.1\tools\AutoMapper.targets')" />
<Import Project="$(SolutionDir)\.nuget\NuGet.targets" Condition="Exists('$(SolutionDir)\.nuget\NuGet.targets')" />
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
<PropertyGroup>
<ErrorText>This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
</PropertyGroup>
<Error Condition="!Exists('$(SolutionDir)\.nuget\NuGet.targets')" Text="$([System.String]::Format('$(ErrorText)', '$(SolutionDir)\.nuget\NuGet.targets'))" />
</Target>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">

Просмотреть файл

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<package>
<metadata>
<id>Abp.Samples.Blog.Application</id>
<version>$version$</version>
<title>Abp.Samples.Blog.Application</title>
<authors>Halil İbrahim Kalkan</authors>
<owners>Halil İbrahim Kalkan</owners>
<description>A sample blog module for ASP.NET Boilerplate.</description>
<projectUrl>http://www.aspnetboilerplate.com</projectUrl>
<iconUrl>http://www.aspnetboilerplate.com/images/abp_nupkg.png</iconUrl>
<tags>asp.net boilerplate sample blog module</tags>
</metadata>
</package>

Просмотреть файл

@ -1,6 +1,7 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using Abp.Samples.Blog;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
@ -32,5 +33,5 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyVersion(AbpSampleBlogConsts.Version)]
[assembly: AssemblyFileVersion(AbpSampleBlogConsts.Version)]

Просмотреть файл

@ -11,6 +11,8 @@
<AssemblyName>Abp.Samples.Blog.Core</AssemblyName>
<TargetFrameworkVersion>v4.5.1</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\</SolutionDir>
<RestorePackages>true</RestorePackages>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
@ -76,6 +78,7 @@
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="AbpSampleBlogConsts.cs" />
<Compile Include="AbpSampleBlogCoreModule.cs" />
<Compile Include="Categories\Category.cs" />
<Compile Include="Comments\Comment.cs" />
@ -94,11 +97,19 @@
<Compile Include="Auth\UserStore.cs" />
</ItemGroup>
<ItemGroup>
<None Include="Abp.Samples.Blog.Core.nuspec" />
<None Include="app.config" />
<None Include="packages.config" />
</ItemGroup>
<ItemGroup />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="$(SolutionDir)\.nuget\NuGet.targets" Condition="Exists('$(SolutionDir)\.nuget\NuGet.targets')" />
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
<PropertyGroup>
<ErrorText>This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
</PropertyGroup>
<Error Condition="!Exists('$(SolutionDir)\.nuget\NuGet.targets')" Text="$([System.String]::Format('$(ErrorText)', '$(SolutionDir)\.nuget\NuGet.targets'))" />
</Target>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">

Просмотреть файл

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<package>
<metadata>
<id>Abp.Samples.Blog.Core</id>
<version>$version$</version>
<title>Abp.Samples.Blog.Core</title>
<authors>Halil İbrahim Kalkan</authors>
<owners>Halil İbrahim Kalkan</owners>
<description>A sample blog module for ASP.NET Boilerplate.</description>
<projectUrl>http://www.aspnetboilerplate.com</projectUrl>
<iconUrl>http://www.aspnetboilerplate.com/images/abp_nupkg.png</iconUrl>
<tags>asp.net boilerplate sample blog module</tags>
</metadata>
</package>

Просмотреть файл

@ -0,0 +1,7 @@
namespace Abp.Samples.Blog
{
public class AbpSampleBlogConsts
{
public const string Version = "0.1.0.0";
}
}

Просмотреть файл

@ -1,6 +1,7 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using Abp.Samples.Blog;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
@ -32,5 +33,5 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyVersion(AbpSampleBlogConsts.Version)]
[assembly: AssemblyFileVersion(AbpSampleBlogConsts.Version)]

Просмотреть файл

@ -11,6 +11,8 @@
<AssemblyName>Abp.Samples.Blog.EntityFramework</AssemblyName>
<TargetFrameworkVersion>v4.5.1</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\</SolutionDir>
<RestorePackages>true</RestorePackages>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
@ -111,6 +113,7 @@
<Compile Include="Repositories\SampleBlogRepositoryBase.cs" />
</ItemGroup>
<ItemGroup>
<None Include="Abp.Samples.Blog.EntityFramework.nuspec" />
<None Include="App.config" />
<None Include="packages.config" />
</ItemGroup>
@ -132,6 +135,13 @@
<Content Include="READ_ME.txt" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="$(SolutionDir)\.nuget\NuGet.targets" Condition="Exists('$(SolutionDir)\.nuget\NuGet.targets')" />
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
<PropertyGroup>
<ErrorText>This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
</PropertyGroup>
<Error Condition="!Exists('$(SolutionDir)\.nuget\NuGet.targets')" Text="$([System.String]::Format('$(ErrorText)', '$(SolutionDir)\.nuget\NuGet.targets'))" />
</Target>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">

Просмотреть файл

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<package>
<metadata>
<id>Abp.Samples.Blog.EntityFramework</id>
<version>$version$</version>
<title>Abp.Samples.Blog.EntityFramework</title>
<authors>Halil İbrahim Kalkan</authors>
<owners>Halil İbrahim Kalkan</owners>
<description>A sample blog module for ASP.NET Boilerplate.</description>
<projectUrl>http://www.aspnetboilerplate.com</projectUrl>
<iconUrl>http://www.aspnetboilerplate.com/images/abp_nupkg.png</iconUrl>
<tags>asp.net boilerplate sample blog module</tags>
</metadata>
</package>

Просмотреть файл

@ -1,6 +1,7 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using Abp.Samples.Blog;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
@ -32,5 +33,5 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyVersion(AbpSampleBlogConsts.Version)]
[assembly: AssemblyFileVersion(AbpSampleBlogConsts.Version)]

Просмотреть файл

@ -14,6 +14,8 @@
<TargetFrameworkVersion>v4.5.1</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<NuGetPackageImportStamp>18351bfd</NuGetPackageImportStamp>
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\</SolutionDir>
<RestorePackages>true</RestorePackages>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
@ -154,7 +156,9 @@
</PropertyGroup>
<Error Condition="!Exists('..\packages\xunit.core.2.0.0\build\portable-net45+win+wpa81+wp80+monotouch+monoandroid+Xamarin.iOS\xunit.core.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\xunit.core.2.0.0\build\portable-net45+win+wpa81+wp80+monotouch+monoandroid+Xamarin.iOS\xunit.core.props'))" />
<Error Condition="!Exists('..\packages\xunit.runner.visualstudio.2.0.1\build\net20\xunit.runner.visualstudio.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\xunit.runner.visualstudio.2.0.1\build\net20\xunit.runner.visualstudio.props'))" />
<Error Condition="!Exists('$(SolutionDir)\.nuget\NuGet.targets')" Text="$([System.String]::Format('$(ErrorText)', '$(SolutionDir)\.nuget\NuGet.targets'))" />
</Target>
<Import Project="$(SolutionDir)\.nuget\NuGet.targets" Condition="Exists('$(SolutionDir)\.nuget\NuGet.targets')" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">

Просмотреть файл

@ -11,6 +11,8 @@
<AssemblyName>Abp.Samples.Blog.Web</AssemblyName>
<TargetFrameworkVersion>v4.5.1</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\</SolutionDir>
<RestorePackages>true</RestorePackages>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
@ -137,11 +139,27 @@
<Project>{167E2EB1-C7A2-4182-93E7-C64230CED65D}</Project>
<Name>Abp.Samples.Blog.Application</Name>
</ProjectReference>
<ProjectReference Include="..\Abp.Samples.Blog.Core\Abp.Samples.Blog.Core.csproj">
<Project>{CF891696-558F-47E4-A092-28A2565B9310}</Project>
<Name>Abp.Samples.Blog.Core</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<None Include="Abp.Samples.Blog.Web.nuspec" />
<Content Include="App\Main\views\blog\blog.cshtml" />
<None Include="packages.config" />
</ItemGroup>
<ItemGroup>
<Content Include="App\Main\views\blog\blog.js" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="$(SolutionDir)\.nuget\NuGet.targets" Condition="Exists('$(SolutionDir)\.nuget\NuGet.targets')" />
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
<PropertyGroup>
<ErrorText>This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
</PropertyGroup>
<Error Condition="!Exists('$(SolutionDir)\.nuget\NuGet.targets')" Text="$([System.String]::Format('$(ErrorText)', '$(SolutionDir)\.nuget\NuGet.targets'))" />
</Target>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">

Просмотреть файл

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<package>
<metadata>
<id>Abp.Samples.Blog.Web</id>
<version>$version$</version>
<title>Abp.Samples.Blog.Web</title>
<authors>Halil İbrahim Kalkan</authors>
<owners>Halil İbrahim Kalkan</owners>
<description>A sample blog module for ASP.NET Boilerplate.</description>
<projectUrl>http://www.aspnetboilerplate.com</projectUrl>
<iconUrl>http://www.aspnetboilerplate.com/images/abp_nupkg.png</iconUrl>
<tags>asp.net boilerplate sample blog module</tags>
</metadata>
</package>

Просмотреть файл

@ -0,0 +1,13 @@
<div ng-controller="app.views.blog as vm">
<h1>Blog Posts</h1>
<div class="row">
<div class="col-md-12">
<ul class="list-group">
<li class="list-group-item" ng-repeat="post in vm.posts">
<h4>{{post.title}}</h4>
<p>{{post.content}}</p>
</li>
</ul>
</div>
</div>
</div>

Просмотреть файл

@ -0,0 +1,29 @@
(function() {
angular.module('app').config([
'$stateProvider',
function ($stateProvider) {
$stateProvider
.state('blog', {
url: '/blog',
templateUrl: '/App/Main/views/blog/blog.cshtml',
menu: 'SampleBlog.AdminPage'
});
}
]);
angular.module('app').controller('app.views.blog', [
'$scope', 'abp.services.blog.post',
function ($scope, postService) {
var vm = this;
vm.posts = [];
postService.getPosts({
maxResultCount: 1000
}).success(function(result) {
vm.posts = result.items;
});
}
]);
})();

Просмотреть файл

@ -1,6 +1,7 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using Abp.Samples.Blog;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
@ -32,5 +33,5 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyVersion(AbpSampleBlogConsts.Version)]
[assembly: AssemblyFileVersion(AbpSampleBlogConsts.Version)]

Просмотреть файл

@ -15,6 +15,13 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Abp.Samples.Blog.Tests", "A
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Abp.Samples.Blog.Web", "Abp.Samples.Blog.Web\Abp.Samples.Blog.Web.csproj", "{4C43484F-55A6-46B0-A11E-4EE0F62B7322}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".nuget", ".nuget", "{4CA2B7A4-3C4B-470C-BB13-45842C3FA74F}"
ProjectSection(SolutionItems) = preProject
.nuget\NuGet.Config = .nuget\NuGet.Config
.nuget\NuGet.exe = .nuget\NuGet.exe
.nuget\NuGet.targets = .nuget\NuGet.targets
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU