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 Tax.CountryStateZip - change type of project to Microsoft.NET.Sdk.Razor

KrzysztofPajak50bfee4037c1
diff --git a/src/Plugins/Tax.CountryStateZip/Controllers/TaxCountryStateZipController.cs b/src/Plugins/Tax.CountryStateZip/Areas/Admin/Controllers/TaxCountryStateZipController.cs
similarity index 98%
rename from src/Plugins/Tax.CountryStateZip/Controllers/TaxCountryStateZipController.cs
rename to src/Plugins/Tax.CountryStateZip/Areas/Admin/Controllers/TaxCountryStateZipController.cs
index 61c001050..9d0a45869 100644
--- a/src/Plugins/Tax.CountryStateZip/Controllers/TaxCountryStateZipController.cs
+++ b/src/Plugins/Tax.CountryStateZip/Areas/Admin/Controllers/TaxCountryStateZipController.cs
@@ -68,7 +68,7 @@ namespace Tax.CountryStateZip.Controllers
model.AvailableStates.Add(new SelectListItem { Text = s.Name, Value = s.Id.ToString() });
}
- return View("~/Plugins/Tax.CountryStateZip/Views/TaxCountryStateZip/Configure.cshtml", model);
+ return View(model);
}
[HttpPost]
diff --git a/src/Plugins/Tax.CountryStateZip/Views/TaxCountryStateZip/Configure.cshtml b/src/Plugins/Tax.CountryStateZip/Areas/Admin/Views/TaxCountryStateZip/Configure.cshtml
similarity index 100%
rename from src/Plugins/Tax.CountryStateZip/Views/TaxCountryStateZip/Configure.cshtml
rename to src/Plugins/Tax.CountryStateZip/Areas/Admin/Views/TaxCountryStateZip/Configure.cshtml
diff --git a/src/Plugins/Tax.CountryStateZip/Views/TaxCountryStateZip/_ViewImports.cshtml b/src/Plugins/Tax.CountryStateZip/Areas/Admin/Views/_ViewImports.cshtml
similarity index 100%
rename from src/Plugins/Tax.CountryStateZip/Views/TaxCountryStateZip/_ViewImports.cshtml
rename to src/Plugins/Tax.CountryStateZip/Areas/Admin/Views/_ViewImports.cshtml
diff --git a/src/Plugins/Tax.CountryStateZip/Tax.CountryStateZip.csproj b/src/Plugins/Tax.CountryStateZip/Tax.CountryStateZip.csproj
index 4dca90a3a..8afee6a45 100644
--- a/src/Plugins/Tax.CountryStateZip/Tax.CountryStateZip.csproj
+++ b/src/Plugins/Tax.CountryStateZip/Tax.CountryStateZip.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 @@
<Authors>UNIT-SOFT Sp. z o.o.</Authors>
<PackageProjectUrl>https://grandnode.com/</PackageProjectUrl>
<TieredCompilation>true</TieredCompilation>
+ <AddRazorSupportForMvc>true</AddRazorSupportForMvc>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
@@ -73,12 +74,6 @@
<None Update="logo.jpg">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
- <None Update="Views\TaxCountryStateZip\Configure.cshtml">
- <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
- </None>
- <None Update="Views\TaxCountryStateZip\_ViewImports.cshtml">
- <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
- </None>
</ItemGroup>
</Project>
\ No newline at end of file