At this moment, VC is running on .NET Core 3.1. But I can find how to run it on .NET 5.
This post explains how to run Virto Commerce on .NET Core 5.0.
-
Create a fork from VirtoCommerce/vc-platform: VirtoCommerce Platform repository (github.com).
-
Update the project file’s Target Framework Moniker (TFM) to
net5.0
.
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
- <TargetFramework>netcoreapp3.1</TargetFramework>
+ <TargetFramework>net5.0</TargetFramework>
</PropertyGroup>
</Project>
I updated theses files:
-
Delete
bin
andobj
folders. If you build the platform before. -
Open
VirtoCommerce.Platform.sln
in Visual Studio 2019. -
Build vc-platform.
- Run vc-platform
Note: All modules are loaded without any modifications.
You can find the code here: OlegoO/vc-platform at feature/net50 (github.com)
References
Migrate from ASP.NET Core 3.1 to 5.0 | Microsoft Docs
OlegoO/vc-platform at feature/net50 (github.com)