Making Visual Studio use the common /bin folder in Brinkster

D

Daniel

Hello, I'm using Brinkster Professional for web hosting. And they give
me a common bin folder, that all projects should use, however Visual
Studio compiles the assemblies to the application specific bin folder.

Is there any way to specify the path that I want it to use? I'm
developing the application directly on the server.

For example:
Lets say my application is called MyApp, so it is put in
/webroot/MyApp, and the MyApp.dll goes in /webroot/MyApp/bin/MyApp.dll.
So every time I want to build the application, I have to copy the
MyApp.dll to /webroot/bin/MyApp.dll. So I want to tell Visual Studio to
place the file in /webroot/bin, instead of having to do it manually
every time.

Thanks,
Daniel
 
G

Girish Bharadwaj

You might want to create a master project which is at the /webroot level.
THen, you should be able to create children who can build their code into
that bin directory.. I think..
Otherwise, you might want to look into Nant for building. Its very useful.
 
T

Tom Porterfield

Daniel said:
Hello, I'm using Brinkster Professional for web hosting. And they give
me a common bin folder, that all projects should use, however Visual
Studio compiles the assemblies to the application specific bin folder.

Is there any way to specify the path that I want it to use? I'm
developing the application directly on the server.

For example:
Lets say my application is called MyApp, so it is put in
/webroot/MyApp, and the MyApp.dll goes in /webroot/MyApp/bin/MyApp.dll.
So every time I want to build the application, I have to copy the
MyApp.dll to /webroot/bin/MyApp.dll. So I want to tell Visual Studio to
place the file in /webroot/bin, instead of having to do it manually
every time.

Thanks,
Daniel

Right click on the project in VS.NET and select Properties. Under
Configuration Properties select Build and change the output path
accordingly.

Or add a post build step to the project that copies the file to the
correct directory.
 
D

Daniel

Whatever I put in the output path, is automatically changed back to
bin/ I've tried setting it to various things, including relative and
absolute addresses, but none work. I've tried: /bin/ /webroot/bin/
.../bin/ c:/sites/SingleX/myname/webroot/bin/ and nothing works.

Maybe doing a post build process would do it, however remember that I'm
working remotely, so copying a file from the server to the server might
not be that easy. At least it doesn't seem to be possible (ftp copy)
from a .bat file, maybe a .vbs or something. If you have any ideas on
how to do that, I'd appreciate it. Also Ho do I add a post build step?

Daniel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top