Skip to content

Open-source eCommerce platform for C# and ASP.NET Core 10 with MongoDB. Build multi-store shops and multi-vendor marketplaces with B2B/B2C, REST API, plugins, Vue 3 and Docker.

Plugin Shipping.FixedRate - change type of project to Microsoft.NET.Sdk.Razor

KrzysztofPajak041f42aa599c
diff --git a/src/Plugins/Shipping.FixedRateShipping/Controllers/ShippingFixedRateController.cs b/src/Plugins/Shipping.FixedRateShipping/Areas/Admin/Controllers/ShippingFixedRateController.cs
similarity index 96%
rename from src/Plugins/Shipping.FixedRateShipping/Controllers/ShippingFixedRateController.cs
rename to src/Plugins/Shipping.FixedRateShipping/Areas/Admin/Controllers/ShippingFixedRateController.cs
index ca4d4e80f..92edd6fdf 100644
--- a/src/Plugins/Shipping.FixedRateShipping/Controllers/ShippingFixedRateController.cs
+++ b/src/Plugins/Shipping.FixedRateShipping/Areas/Admin/Controllers/ShippingFixedRateController.cs
@@ -32,7 +32,7 @@ namespace Shipping.FixedRateShipping.Controllers
public IActionResult Configure()
{
- return View("~/Plugins/Shipping.FixedRateShipping/Views/ShippingFixedRate/Configure.cshtml");
+ return View();
}
[HttpPost]
diff --git a/src/Plugins/Shipping.FixedRateShipping/Views/ShippingFixedRate/Configure.cshtml b/src/Plugins/Shipping.FixedRateShipping/Areas/Admin/Views/ShippingFixedRate/Configure.cshtml
similarity index 100%
rename from src/Plugins/Shipping.FixedRateShipping/Views/ShippingFixedRate/Configure.cshtml
rename to src/Plugins/Shipping.FixedRateShipping/Areas/Admin/Views/ShippingFixedRate/Configure.cshtml
diff --git a/src/Plugins/Shipping.FixedRateShipping/Views/ShippingFixedRate/_ViewImports.cshtml b/src/Plugins/Shipping.FixedRateShipping/Areas/Admin/Views/ShippingFixedRate/_ViewImports.cshtml
similarity index 100%
rename from src/Plugins/Shipping.FixedRateShipping/Views/ShippingFixedRate/_ViewImports.cshtml
rename to src/Plugins/Shipping.FixedRateShipping/Areas/Admin/Views/ShippingFixedRate/_ViewImports.cshtml
diff --git a/src/Plugins/Shipping.FixedRateShipping/Shipping.FixedRateShipping.csproj b/src/Plugins/Shipping.FixedRateShipping/Shipping.FixedRateShipping.csproj
index 5d51a0ae6..800c8c4cd 100644
--- a/src/Plugins/Shipping.FixedRateShipping/Shipping.FixedRateShipping.csproj
+++ b/src/Plugins/Shipping.FixedRateShipping/Shipping.FixedRateShipping.csproj
@@ -1,4 +1,4 @@
-<Project Sdk="Microsoft.NET.Sdk">
+<Project Sdk="Microsoft.NET.Sdk.Razor">
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
@@ -7,6 +7,7 @@
<Company>UNIT-SOFT Sp. z o.o.</Company>
<PackageProjectUrl>https://grandnode.com/</PackageProjectUrl>
<TieredCompilation>true</TieredCompilation>
+ <AddRazorSupportForMvc>true</AddRazorSupportForMvc>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
@@ -73,12 +74,6 @@
<None Update="logo.jpg">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
- <None Update="Views\ShippingFixedRate\Configure.cshtml">
- <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
- </None>
- <None Update="Views\ShippingFixedRate\_ViewImports.cshtml">
- <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
- </None>
</ItemGroup>
</Project>