diff --git a/templates/service/src/MyCompanyName.MyProjectName.Web/Localization/Resources/MyProjectName/en.json b/templates/service/src/MyCompanyName.MyProjectName.Web/Localization/Resources/MyProjectName/en.json deleted file mode 100644 index 92e4e9582b..0000000000 --- a/templates/service/src/MyCompanyName.MyProjectName.Web/Localization/Resources/MyProjectName/en.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "culture": "en", - "texts": { - - } -} \ No newline at end of file diff --git a/templates/service/src/MyCompanyName.MyProjectName.Web/MyCompanyName.MyProjectName.Web.csproj b/templates/service/src/MyCompanyName.MyProjectName.Web/MyCompanyName.MyProjectName.Web.csproj deleted file mode 100644 index 3eb58c5168..0000000000 --- a/templates/service/src/MyCompanyName.MyProjectName.Web/MyCompanyName.MyProjectName.Web.csproj +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - netstandard2.0 - $(AssetTargetFallback);portable-net45+win8+wp8+wpa81; - true - Library - MyCompanyName.MyProjectName - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/templates/service/src/MyCompanyName.MyProjectName.Web/MyProjectNameMenuContributor.cs b/templates/service/src/MyCompanyName.MyProjectName.Web/MyProjectNameMenuContributor.cs deleted file mode 100644 index b844d86ae2..0000000000 --- a/templates/service/src/MyCompanyName.MyProjectName.Web/MyProjectNameMenuContributor.cs +++ /dev/null @@ -1,23 +0,0 @@ -using System.Threading.Tasks; -using Volo.Abp.UI.Navigation; - -namespace MyCompanyName.MyProjectName -{ - public class MyProjectNameMenuContributor : IMenuContributor - { - public async Task ConfigureMenuAsync(MenuConfigurationContext context) - { - if (context.Menu.Name == StandardMenus.Main) - { - await ConfigureMainMenu(context); - } - } - - private Task ConfigureMainMenu(MenuConfigurationContext context) - { - //Add main menu items. - - return Task.CompletedTask; - } - } -} \ No newline at end of file diff --git a/templates/service/src/MyCompanyName.MyProjectName.Web/MyProjectNameWebAutoMapperProfile.cs b/templates/service/src/MyCompanyName.MyProjectName.Web/MyProjectNameWebAutoMapperProfile.cs deleted file mode 100644 index a0f14e727d..0000000000 --- a/templates/service/src/MyCompanyName.MyProjectName.Web/MyProjectNameWebAutoMapperProfile.cs +++ /dev/null @@ -1,12 +0,0 @@ -using AutoMapper; - -namespace MyCompanyName.MyProjectName -{ - public class MyProjectNameWebAutoMapperProfile : Profile - { - public MyProjectNameWebAutoMapperProfile() - { - //Create mappings. - } - } -} \ No newline at end of file diff --git a/templates/service/src/MyCompanyName.MyProjectName.Web/MyProjectNameWebModule.cs b/templates/service/src/MyCompanyName.MyProjectName.Web/MyProjectNameWebModule.cs deleted file mode 100644 index 7787dd4d96..0000000000 --- a/templates/service/src/MyCompanyName.MyProjectName.Web/MyProjectNameWebModule.cs +++ /dev/null @@ -1,62 +0,0 @@ -using Localization.Resources.AbpUi; -using Microsoft.AspNetCore.Mvc.RazorPages; -using Microsoft.Extensions.DependencyInjection; -using MyCompanyName.MyProjectName.Localization; -using Volo.Abp.AspNetCore.Mvc.Localization; -using Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared; -using Volo.Abp.AutoMapper; -using Volo.Abp.Localization; -using Volo.Abp.Localization.Resources.AbpValidation; -using Volo.Abp.Modularity; -using Volo.Abp.UI.Navigation; -using Volo.Abp.VirtualFileSystem; - -namespace MyCompanyName.MyProjectName -{ - [DependsOn(typeof(MyProjectNameHttpApiModule))] - [DependsOn(typeof(AbpAspNetCoreMvcUiThemeSharedModule))] - [DependsOn(typeof(AbpAutoMapperModule))] - public class MyProjectNameWebModule : AbpModule - { - public override void PreConfigureServices(ServiceConfigurationContext context) - { - context.Services.PreConfigure(options => - { - options.AddAssemblyResource(typeof(MyProjectNameResource), typeof(MyProjectNameWebModule).Assembly); - }); - } - - public override void ConfigureServices(ServiceConfigurationContext context) - { - context.Services.Configure(options => - { - options.MenuContributors.Add(new MyProjectNameMenuContributor()); - }); - - context.Services.Configure(options => - { - options.FileSets.AddEmbedded("MyCompanyName.MyProjectName"); - }); - - context.Services.Configure(options => - { - options.Resources - .Get() - .AddBaseTypes( - typeof(AbpValidationResource), - typeof(AbpUiResource) - ).AddVirtualJson("/Localization/Resources/MyProjectName"); - }); - - context.Services.Configure(options => - { - options.AddProfile(validate: true); - }); - - context.Services.Configure(options => - { - //Configure authorization. - }); - } - } -} diff --git a/templates/service/src/MyCompanyName.MyProjectName.Web/Pages/MyProjectName/_ViewImports.cshtml b/templates/service/src/MyCompanyName.MyProjectName.Web/Pages/MyProjectName/_ViewImports.cshtml deleted file mode 100644 index c1da1f5f10..0000000000 --- a/templates/service/src/MyCompanyName.MyProjectName.Web/Pages/MyProjectName/_ViewImports.cshtml +++ /dev/null @@ -1,4 +0,0 @@ -@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers -@addTagHelper *, Volo.Abp.AspNetCore.Mvc.UI -@addTagHelper *, Volo.Abp.AspNetCore.Mvc.UI.Bootstrap -@addTagHelper *, Volo.Abp.AspNetCore.Mvc.UI.Bundling \ No newline at end of file diff --git a/templates/service/src/MyCompanyName.MyProjectName.Web/Properties/launchSettings.json b/templates/service/src/MyCompanyName.MyProjectName.Web/Properties/launchSettings.json deleted file mode 100644 index c261ea344a..0000000000 --- a/templates/service/src/MyCompanyName.MyProjectName.Web/Properties/launchSettings.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "iisSettings": { - "windowsAuthentication": false, - "anonymousAuthentication": true, - "iisExpress": { - "applicationUrl": "http://localhost:56993/", - "sslPort": 0 - } - }, - "profiles": { - "IIS Express": { - "commandName": "IISExpress", - "launchBrowser": true, - "environmentVariables": { - "ASPNETCORE_ENVIRONMENT": "Development" - } - }, - "MyCompanyName.MyProjectName.Web": { - "commandName": "Project", - "launchBrowser": true, - "environmentVariables": { - "ASPNETCORE_ENVIRONMENT": "Development" - }, - "applicationUrl": "http://localhost:56994/" - } - } -} \ No newline at end of file