# How to run Virto Commerce on .NET 5

**URL:** <https://www.virtocommerce.org/t/how-to-run-virto-commerce-on-net-5/322>\
**Category:** dev\
**Tags:** net5\
**Created:** [May 20, 2021, 2:13pm UTC](https://www.virtocommerce.org/t/how-to-run-virto-commerce-on-net-5/322 "2021-05-20T14:13:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![OlegoO](https://yyz2.discourse-cdn.com/flex032/user_avatar/www.virtocommerce.org/olegoo/32/27_2.png) [@OlegoO](https://www.virtocommerce.org/u/OlegoO)\
**Post date:** [May 20, 2021, 2:13pm UTC](https://www.virtocommerce.org/t/how-to-run-virto-commerce-on-net-5/322/1 "2021-05-20T14:13:20Z")

</div>

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.

1. Create a fork from [VirtoCommerce/vc-platform: VirtoCommerce Platform repository (github.com)](https://github.com/VirtoCommerce/vc-platform).

2. Update the project file’s [Target Framework Moniker (TFM)](https://docs.microsoft.com/en-us/dotnet/standard/frameworks) to `net5.0`.

```xml
<Project Sdk="Microsoft.NET.Sdk.Web">

  <PropertyGroup>
- <TargetFramework>netcoreapp3.1</TargetFramework>
+ <TargetFramework>net5.0</TargetFramework>
  </PropertyGroup>

</Project>

```

I updated theses files:

 ![image](https://canada1.discourse-cdn.com/flex032/uploads/virtocommerce/original/1X/85bd312e148defc6310b1cc9348839c21fbfd57d.png)

1. Delete `bin` and `obj` folders. **If you build the platform before**.

2. Open `VirtoCommerce.Platform.sln` in Visual Studio 2019.

3. Build vc-platform.

 ![image](https://canada1.discourse-cdn.com/flex032/uploads/virtocommerce/original/1X/9c69e9a364b342e790610de09cf5bc2ab51ea33e.png)

1. Run vc-platform

 ![image](https://canada1.discourse-cdn.com/flex032/uploads/virtocommerce/original/1X/71b196128d6de5064f14b69f979b7f86e5416a55.png)

**Note:** All modules are loaded without any modifications.

You can find the code here: [OlegoO/vc-platform at feature/net50 (github.com)](https://github.com/OlegoO/vc-platform/tree/feature/net50)

## References

[Migrate from ASP.NET Core 3.1 to 5.0 | Microsoft Docs](https://docs.microsoft.com/en-us/aspnet/core/migration/31-to-50?view=aspnetcore-5.0&tabs=visual-studio)  
[OlegoO/vc-platform at feature/net50 (github.com)](https://github.com/OlegoO/vc-platform/tree/feature/net50)
