ClearPluginAssemblies.proj not clearing as expected in VS 2019

8 months 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:
but that didnt work.

I also got the latest version of the source code for ClearPluginAssemblies here:

that didn't work either.

please help, as this is a major stuck for my organization.

8 months ago
Clean n then build sln.
7 months ago
Take a look at

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"
7 months 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.
7 months ago
Did you ever find the solution? This looks the same as this topic .

Also see the fix at GitHub
1 month ago
I have the same problem. any workarounds?