Rich said:
I created a class library (dll) in "Active Debug" mode. After testing
it out and seeing it works correctly I went to the Properties page of my
Project to the Build section and changed the configuration to "Release"
from "Active Debug". The Output Path says "bin\Release\"
But when I click on Build myClassLib -- it is still building it in
bin\Debug. How do I change this to bin\Release\?
The selection you found in the Properties doesn't change what's being
output when you build the solution. It changes the settings for _that_
configuration, so that when you _do_ build that configuration, it uses
those settings.
When you selected a different configuration ("Release") in the
Properties for the project, that didn't change anything in the project
itself. It just changes the state of the Properties window, so that you
can modify properties for the "Release" build instead of the active
"Debug" build.
To change what configuration is actually being built, either find the
toolbar drop down that has the list of configurations in it, and select
"Release" instead of "Debug". Or use the Build/Configuration Manager…
menu item, which will bring up the Configuration Manager dialog. The
first thing, in the upper left corner, is the currently selected
"active" configuration.
Note that if you simply want to build everything, you can use the
Build/Batch Build… menu item to bring up a dialog that will let you
select the configurations to build all at once. Ensure that the
"Release" build is selected in that dialog, then click the "Build"
button, and it and every other configuration you've selected in that
dialog will be built.
Note also that the build configuration is a solution-wide setting. All
projects in the solution will be built using the selected setting,
unless you go through the Batch Build dialog (which allows you to select
individual projects/configuration combinations to be built).
Pete