Everybody knows a wonderful and free tool - WSPBuilder . I use it as an extension to Visual Studio:
There is a page crafted by the author of the tool which has a reference to bunch of post as a documentation "how-to" use the WSPBuilder
Particularly for my task I was reading the post Change the WSPBuilder DeploymentTarget to WebApplication
t wsp has manifest file which describes what in the package and how sharepoint should handle it.
DeploymentTarget attribute defines where the dll should go
The next question was how WSPBuilder decides what value to put into DeploymentTarget?
Possible values: GlobalAssemblyCache , WebApplication
So, it turned out that WSPBuilder puts:
- by default ;
-if the name doesn't have a word "resources" (as I discovered);
-the dll hasn't been put under folder 80\bin\
- or "-DeploymentTarget" explicitly set to "GlobalAssemblyCache" in postbuild.scripts
The WSPBuilder has a config file where you can tune the params.