What is the "MCD" configuration created as a result of the `dotnet publish` command?

185 views Asked by At

When I apply the dotnet publish command I see three folders created in the bin folder: Debug, Release, and MCD.

What exactly is the MCD configuration, and what is this configuration for?

1

There are 1 answers

1
Trevor Reid On BEST ANSWER

This is likely a result of the environment variable Platform=MCD existing, as it often will on a machine configured by HP.

See this article and this github discussion for more detail:

The issue you are seeing might be related to the way HP machines are setup -- they have an environment variable called Platform, set to MCD which is why you are seeing this...

If it is causing a problem, there is nothing wrong with removing this variable as far as I know. This blog post from Chapman World agrees. And if it did break something it's easy to put the variable back. So the risk is small.

Alternatively, you could safely ignore or discard the unwanted build output now that you know its origin.