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

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=, 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:

"sdk": {
  "version": "3.1.404",
  "rollForward": "latestFeature",
  "allowPrerelease": false
1 Like