Building Source Code on Mac results in ClearPluginAssemblies.dll

1 month ago
Hello,

I'm trying to get started developing plugins for nopCommerce on my Mac.
I've just installed Visual Studio for Mac and a fresh 4.2 copy of nopCommerce source code.

When I open it up in Visual Studio and click either the Play Icon or try and Build, Rebuild etc I am greeted with an error inside my 'ClearPluginAssemblies.proj'

It's quite a long error stating:

/Users/davidfoley/Documents/NopCommerce/Sandbox/src/Build/ClearPluginAssemblies.proj(5,5): Error MSB3073: The command "dotnet "ClearPluginAssemblies.dll" "OutputPath=/Users/davidfoley/Documents/NopCommerce/Sandbox/src/Build/../Presentation/Nop.Web/bin/Debug/netcoreapp2.2/|PluginPath=/Users/davidfoley/Documents/NopCommerce/Sandbox/src/Presentation/Nop.Web/Plugins/DiscountRules.CustomerRoles/;/Users/davidfoley/Documents/NopCommerce/Sandbox/src/Presentation/Nop.Web/Plugins/ExchangeRate.EcbExchange/;/Users/davidfoley/Documents/NopCommerce/Sandbox/src/Presentation/Nop.Web/Plugins/ExternalAuth.Facebook/;/Users/davidfoley/Documents/NopCommerce/Sandbox/src/Presentation/Nop.Web/Plugins/Misc.SendinBlue/;/Users/davidfoley/Documents/NopCommerce/Sandbox/src/Presentation/Nop.Web/Plugins/Payments.CheckMoneyOrder/;/Users/davidfoley/Documents/NopCommerce/Sandbox/src/Presentation/Nop.Web/Plugins/Payments.Manual/;/Users/davidfoley/Documents/NopCommerce/Sandbox/src/Presentation/Nop.Web/Plugins/Payments.PayPalStandard/;/Users/davidfoley/Documents/NopCommerce/Sandbox/src/Presentation/Nop.Web/Plugins/Payments.Qualpay/;/Users/davidfoley/Documents/NopCommerce/Sandbox/src/Presentation/Nop.Web/Plugins/Payments.Square/;/Users/davidfoley/Documents/NopCommerce/Sandbox/src/Presentation/Nop.Web/Plugins/Pickup.PickupInStore/;/Users/davidfoley/Documents/NopCommerce/Sandbox/src/Presentation/Nop.Web/Plugins/Shipping.FixedByWeightByTotal/;/Users/davidfoley/Documents/NopCommerce/Sandbox/src/Presentation/Nop.Web/Plugins/Shipping.UPS/;/Users/davidfoley/Documents/NopCommerce/Sandbox/src/Presentation/Nop.Web/Plugins/Tax.Avalara/;/Users/davidfoley/Documents/NopCommerce/Sandbox/src/Presentation/Nop.Web/Plugins/Tax.FixedOrByCountryStateZip/;/Users/davidfoley/Documents/NopCommerce/Sandbox/src/Presentation/Nop.Web/Plugins/Widgets.GoogleAnalytics/;/Users/davidfoley/Documents/NopCommerce/Sandbox/src/Presentation/Nop.Web/Plugins/Widgets.NivoSlider/|SaveLocalesFolders="" exited with code 150. (MSB3073) (Nop.Web)

Does anyone have any idea how to resolve this?

Thanks
1 month ago
Do you have installed dotnet core 3.0 sdk on your machine? This can create some annoying issues.  

Anyway you can check this thread.
1 month ago
Thanks,

I had a look at that other post and tried what they said but sadly didn't work.

I've just admitted defeat and started a Windows VM on Azure and hope that works.
1 month ago
managed to resolve this.

I tried it on my Azure Vm and it also didn't work but actually gave me a helpful error which said I did dot net core 2.2  and a link

I went back to my Mac, downloaded it from https://dotnet.microsoft.com/download/dotnet-core/2.2
Cleaned it, rebuilt it, ran in and it worked!