I recently got a new machine with visual studio 2019 professional.
When I build a plugin, the ClearPluginAssemblies.proj isn't clearing out the files like it used to.
I even made the changes talked about here: https://www.nopcommerce.com/boards/t/50794/building-error-v4-latest-changeset-.aspx#200379 but that didnt work.
I also got the latest version of the source code for ClearPluginAssemblies here: https://github.com/nopSolutions/nopCommerce/tree/1fe9d6dc5329cf1a19b0935347213201532dc1da/src/Build
that didn't work either.
please help, as this is a major stuck for my organization.
Take a look at https://github.com/nopSolutions/nopCommerce/issues/4116
what I did was, created global.json file in solution folder where sln file is located with sdk version specified
other alternative is through cmd inside same folder run this command, but check if you have 2.2.402 this version installed dotnet new globaljson --sdk-version 2.2.402
Did you ever find the solution? This looks the same as this topic https://www.nopcommerce.com/boards/topic/73579/publishing-nopcommerce-42-via-visual-studio-2019 .
Also see the fix at GitHub https://github.com/nopSolutions/nopCommerce/commit/7b9f8f0fb6178c40b92167ebdaa049a21a47b1ee#diff-a41a63defcef48db681414acbe0c994c