# Vc-build compress fail with 'The SDK resolver type WorkloadSdkResolver failed to load' exception

**URL:** <https://www.virtocommerce.org/t/vc-build-compress-fail-with-the-sdk-resolver-type-workloadsdkresolver-failed-to-load-exception/315>\
**Category:** dev\
**Created:** [May 5, 2021, 11:43am UTC](https://www.virtocommerce.org/t/vc-build-compress-fail-with-the-sdk-resolver-type-workloadsdkresolver-failed-to-load-exception/315 "2021-05-05T11:43:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tatarincev](https://yyz2.discourse-cdn.com/flex032/user_avatar/www.virtocommerce.org/tatarincev/32/161_2.png) [@tatarincev](https://www.virtocommerce.org/u/tatarincev)\
**Post date:** [May 5, 2021, 11:43am UTC](https://www.virtocommerce.org/t/vc-build-compress-fail-with-the-sdk-resolver-type-workloadsdkresolver-failed-to-load-exception/315/1 "2021-05-05T11:43:47Z")

</div>

`vc-build compress` command might fail with an exception

> InvalidProjectFileException: The SDK resolver type “WorkloadSdkResolver” failed to load. Could not load file or assembly ‘System.Runtime, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’. The system cannot find the file specified. c:\Projects\VirtoCommerce\V3\Modules\vc-module-cart.git\src\VirtoCommerce.CartModule.Web\VirtoCommerce.CartModule.Web.csproj

The temporary workaround put the `global.json` file in the module solution folder with the following content:

```json
{
  "sdk": {
    "version": "3.1.0",
	"rollForward": "latestMinor"
  }
}

```

or you can create a new _global.json_ file in the current directory by executing the [dotnet new](https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-new) command, similar to the following example:

```auto
dotnet new globaljson --sdk-version 3.1.0

```

---

<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:** [January 14, 2022, 8:37am UTC](https://www.virtocommerce.org/t/vc-build-compress-fail-with-the-sdk-resolver-type-workloadsdkresolver-failed-to-load-exception/315/2 "2022-01-14T08:37:25Z")

</div>

[VC-Build problem on NET 5 - dev - Virto Commerce](https://www.virtocommerce.org/t/vc-build-problem-on-net-5/276)
