My project structure looks like this:
- src
-- class library 1
-- class library 2
-- web project - bin
-- debug
-- release
The default output directory for an MVC4 web project is .\Bin\
(i.e. within the web project's directory), but I change it to something like ..\bin\debug\
or ..\bin\release\
to fit my above project structure. It compiles fine and the binaries go to the correct places.
But when I run the project it complains that Could not load type Myproject.MvcApplication
, whereas if I don't make the above changes then it works.
How do I control the location for the binaries? I want the output directory to be completely separate from the source directories - it's easier to deploy and more secure because I don't have a mixture of source and binaries in one place.