ClearPluginAssemblies.proj not clearing as expected in VS 2019

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
4 years ago
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.

Thanks
4 years ago
Clean n then build sln.
4 years ago
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

global json looks like this:

{
  "sdk": {
    "version": "2.2.402"
  }
}
4 years ago
Thanks for responding, guys.

I've done a clean and build many times, that didn't work.

I also tried the suggestion to create the global.json file, and that didn't work either.

In VS2019, I get this error: exited with code 255

It does still work in VS2017, which has been my workaround.
4 years ago
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
3 years ago
I have the same problem. any workarounds?
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.