Change the output path for the web API project and avoid the "Unable to load type ..." exception when debugging

My solution consists of several projects. Some are desktop, some are "split", some (new) will be part of the solution.

Currently working and general projects have similar output path settings:

  • .. \ bin \ debug for debug configuration;
  • .. \ bin \ release for release configuration.

Since I am learning MVC and Web API, I have been playing around with several sample projects and I know that changing the default output path will result in an "Unable to load type ..." exception when debugging.

Usually solutions should restore the default output path, but I want to keep the structure of the solution, so I want to set the output path to the values ​​listed above.

Is there a sane way to achieve this?

+3


source to share





All Articles