From 28af1642f6405c04f0af71fd16dceaed53da627c Mon Sep 17 00:00:00 2001 From: Sumit Ghosh Date: Thu, 3 Dec 2020 21:53:11 +0530 Subject: [PATCH] Feature/update net 5 (#487) * Updated ApplicationCore to net 5 * Updated Infrastructure project to net 5 * Updated BlazorShared project to net 5 * Updated PublicApi project to net 5 * Updated Web mvc project to net 5 * Updated BlazorAdmin project to net-5 * Updated FunctionalTests to net 5 * Updated UnitTests project to net 5 * Updated IntegrationTests project to net 5 * Fixed CSS specific bug in BlazorAdmin project * Updated github action worflow yaml * Changes the name to only .NET * Removed hardcoded minor version from github action workflow. * Removed commneted code. * Removed minor versions from the docker file * Updated dotnet-ef tool version configuration to net-5 * Removed old migration plans * Added net5 migration plans * Updated infrastructure projecti setting. * Removed database error page related configuration * Removed commented package. --- .github/workflows/dotnetcore.yml | 4 +- src/ApplicationCore/ApplicationCore.csproj | 10 +- src/BlazorAdmin/BlazorAdmin.csproj | 60 ++-- .../Pages/CatalogItemPage/Create.razor | 12 +- .../Pages/CatalogItemPage/Edit.razor | 2 +- src/BlazorAdmin/Program.cs | 4 +- .../Properties/launchSettings.json | 1 + src/BlazorAdmin/Shared/MainLayout.razor | 27 +- .../wwwroot/appsettings.Development.json | 14 + src/BlazorAdmin/wwwroot/css/admin.css | 10 +- src/BlazorShared/BlazorShared.csproj | 2 +- .../20171018175735_Initial.Designer.cs | 225 -------------- ...0725190153_AddExtraConstraints.Designer.cs | 242 --------------- .../20180725190153_AddExtraConstraints.cs | 104 ------- ...14740_UpdatingDefaultDataTypes.Designer.cs | 251 --------------- ...20190601014740_UpdatingDefaultDataTypes.cs | 73 ----- ...90818191507_UpdatedConstraints.Designer.cs | 254 ---------------- .../20190818191507_UpdatedConstraints.cs | 113 ------- ...0911011026_UpdateCatalogModels.Designer.cs | 252 ---------------- .../20190911011026_UpdateCatalogModels.cs | 128 -------- .../20191031185508_Post30Upgrade.cs | 224 -------------- ...ssAndCatalogItemOrderedChanges.Designer.cs | 285 ------------------ ...820_AddressAndCatalogItemOrderedChanges.cs | 121 -------- ...> 20201202111507_InitialModel.Designer.cs} | 98 ++++-- ...tial.cs => 20201202111507_InitialModel.cs} | 83 +++-- .../Migrations/CatalogContextModelSnapshot.cs | 95 +++--- ...822214310_InitialIdentityModel.Designer.cs | 215 ------------- ...202111612_InitialIdentityModel.Designer.cs | 273 +++++++++++++++++ ...=> 20201202111612_InitialIdentityModel.cs} | 175 +++++------ .../AppIdentityDbContextModelSnapshot.cs | 261 +++++++++------- src/Infrastructure/Infrastructure.csproj | 14 +- src/PublicApi/Dockerfile | 4 +- src/PublicApi/PublicApi.csproj | 32 +- src/Web/.config/dotnet-tools.json | 2 +- src/Web/Dockerfile | 4 +- src/Web/Pages/Admin/Index.cshtml | 2 +- src/Web/Properties/launchSettings.json | 3 +- src/Web/Startup.cs | 6 +- src/Web/Web.csproj | 34 +-- tests/FunctionalTests/FunctionalTests.csproj | 10 +- .../IntegrationTests/IntegrationTests.csproj | 10 +- tests/UnitTests/UnitTests.csproj | 8 +- 42 files changed, 830 insertions(+), 2917 deletions(-) create mode 100644 src/BlazorAdmin/wwwroot/appsettings.Development.json delete mode 100644 src/Infrastructure/Data/Migrations/20171018175735_Initial.Designer.cs delete mode 100644 src/Infrastructure/Data/Migrations/20180725190153_AddExtraConstraints.Designer.cs delete mode 100644 src/Infrastructure/Data/Migrations/20180725190153_AddExtraConstraints.cs delete mode 100644 src/Infrastructure/Data/Migrations/20190601014740_UpdatingDefaultDataTypes.Designer.cs delete mode 100644 src/Infrastructure/Data/Migrations/20190601014740_UpdatingDefaultDataTypes.cs delete mode 100644 src/Infrastructure/Data/Migrations/20190818191507_UpdatedConstraints.Designer.cs delete mode 100644 src/Infrastructure/Data/Migrations/20190818191507_UpdatedConstraints.cs delete mode 100644 src/Infrastructure/Data/Migrations/20190911011026_UpdateCatalogModels.Designer.cs delete mode 100644 src/Infrastructure/Data/Migrations/20190911011026_UpdateCatalogModels.cs delete mode 100644 src/Infrastructure/Data/Migrations/20191031185508_Post30Upgrade.cs delete mode 100644 src/Infrastructure/Data/Migrations/20191105161820_AddressAndCatalogItemOrderedChanges.Designer.cs delete mode 100644 src/Infrastructure/Data/Migrations/20191105161820_AddressAndCatalogItemOrderedChanges.cs rename src/Infrastructure/Data/Migrations/{20191031185508_Post30Upgrade.Designer.cs => 20201202111507_InitialModel.Designer.cs} (75%) rename src/Infrastructure/Data/Migrations/{20171018175735_Initial.cs => 20201202111507_InitialModel.cs} (78%) delete mode 100644 src/Infrastructure/Identity/Migrations/20170822214310_InitialIdentityModel.Designer.cs create mode 100644 src/Infrastructure/Identity/Migrations/20201202111612_InitialIdentityModel.Designer.cs rename src/Infrastructure/Identity/Migrations/{20170822214310_InitialIdentityModel.cs => 20201202111612_InitialIdentityModel.cs} (59%) diff --git a/.github/workflows/dotnetcore.yml b/.github/workflows/dotnetcore.yml index 8c10cf0..e59a440 100644 --- a/.github/workflows/dotnetcore.yml +++ b/.github/workflows/dotnetcore.yml @@ -9,10 +9,10 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Setup .NET Core + - name: Setup .NET uses: actions/setup-dotnet@v1 with: - dotnet-version: 3.1.x + dotnet-version: '5.0.x' - name: Build with dotnet run: dotnet build ./eShopOnWeb.sln --configuration Release diff --git a/src/ApplicationCore/ApplicationCore.csproj b/src/ApplicationCore/ApplicationCore.csproj index c86812d..a121120 100644 --- a/src/ApplicationCore/ApplicationCore.csproj +++ b/src/ApplicationCore/ApplicationCore.csproj @@ -1,16 +1,16 @@  - netstandard2.1 + net5.0 Microsoft.eShopWeb.ApplicationCore - - - + + + - + diff --git a/src/BlazorAdmin/BlazorAdmin.csproj b/src/BlazorAdmin/BlazorAdmin.csproj index c41d0af..0bcdd40 100644 --- a/src/BlazorAdmin/BlazorAdmin.csproj +++ b/src/BlazorAdmin/BlazorAdmin.csproj @@ -1,37 +1,35 @@ - + - - netstandard2.1 - 3.0 - + + net5.0 + - - - - - - - - - - - - + + + + + + + + + + + - - - + + + - - - Delete.cs - - - GetById.cs - - - Edit.cs - - + + + Delete.cs + + + GetById.cs + + + Edit.cs + + diff --git a/src/BlazorAdmin/Pages/CatalogItemPage/Create.razor b/src/BlazorAdmin/Pages/CatalogItemPage/Create.razor index 51ebf98..07f2b71 100644 --- a/src/BlazorAdmin/Pages/CatalogItemPage/Create.razor +++ b/src/BlazorAdmin/Pages/CatalogItemPage/Create.razor @@ -6,8 +6,6 @@ @namespace BlazorAdmin.Pages.CatalogItemPage - -